Evaluate inverse functions The graph of y= h(x) is a line segment joining the points (-7,-5) and (-1,-2) Drag the endpoints of the segment below to graph y=h^-1(x)

When we have an inverse function, the domain and range are switched.
All x-coordinates become y-coordinates and vice-versa.
So, if the point (-7, -5) is a solution of h(x), the point (-5, -7) is a solution of h^-1(x)
If the point (-1, -2) is a solution of h(x), the point (-2, -1) is a solution of h^-1(x).
Therefore, the endpoints of the segment that represents the inverse function are the points (-5, -7) and (-2, -1).