Solve similar triangles (advanced)