Show that the sides of the two triangles must be of the form (pm3, pm2n, pmn2) and (pm2n, pmn2, pn3), where p, m, n are integers.