The triangles are similar. Which side of triangle JGH corresponds to side PM of PMO? I think it’s JG.

It is JG! You must rotate the second triangle so both triangles are at the same angle. Then, look at the lines and find the corresponding line segment on the other triangle.