In a ΔMAP, on sides MA and AP, squares are drawn. If P and D are on the same side of AM; and M,E lie on opposite sides of AP. D and E are the centres of the squares on MA and AP respectively. Find the angle between MP and DE.

I have been trying to solve this problem since long time and I've been unable to do so. I have already found an approach using complex numbers but I want a pure geometry solution. The diagram was really complicated and visualising constructions were much harder. Would someone please help me to solve this question? Thanks for help .
