The triangle EFG is rotated 180 degrees to be transformed in the triangle E'F'G'
Its reflected around a line ,
this line is y= x.
The line y= x passes exactly between the two triangles.
The line is half distance between the triangles
So both triangles are at the same distance to the line y=x.
So ,the triangle EFG was just rotated 180 degrees around the origin. BUT was not reflected.