A(-5,7)
B(4,4)
The segment is reflected over the line y =4
The line y=4 is a horizontal line, coordinate in x doesn't change after reflection.
To find coordinate y after reflection:
Find the distance of each point from y=4
Point A: (-5,7)
As y=4 is below the point A, the point A' will have a coordinate y of: 4-3=1
Point A': (-5,1)
Point B: (4,4)
As point B is on line y=4 the point B' will have a coordinate y of 4-0:4
Point B': (4,4)
_____________________________
then rotated 90° CW:
Rule for a rotation 90º CW:
Then, you get the next coordinates for A'' and B'':