In △ABC, M, N, and P are the midpoints of the sides AB¯¯¯¯¯, BC¯¯¯¯¯, and AC¯¯¯¯¯ correspondingly. If MN=12, NP=11, and MP=21, what is the perimeter of △ABC?