The diagram shows two squares APQRAPQRAPQR and ASTUASTUASTU, which have vertex AAA in common. The point MMM is the midpoint of PUPUPU. Prove that AM=12RSAM = \frac{1}{2}RSAM=21RS.