solve for x the polygons in each pair are similar