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).