In the given figure, ABC and AMP are two right triangles,

In the given figure, ABC and AMP are two right triangles, right angled at B and M respectively. Prove that:
image

image