Can someone please help me out with this problem?

In isosceles triangle abc, angle A =40 , AD is median, and CM and BP are leg altitudes.

I figured that angles B and C are 70, M and P would be 70 and D is 90. Is this right and where do I go from here?