what is the inverse of the function shown

Step-by-step explanation:
the down function clearly is
y = x - 5, -2 <= x <= 8
the reasons :
1. it is linear. so, we have only a form of ax+b
2. x=0 => y=-5
x=5 => y=0
so, with these 2 points alone we can see
y = ax + b
-5 = a×0 +b = b
0 = a×5 - 5
5 = a×5
1 = a
the inverse function is based on
y = x - 5
=>
x = y + 5
now renaming the variables so that y is the result and x the input variable delivers
y = x + 5
and because the original function only delivered y- values between -7 and +3, this is also the defined domain for the inverse function.
so,
y = x + 5, -7 <= x <= +3
so, we have the points
x=-7 => y=-2
x=+3 => y=8
you need to draw the line between these 2 points with filled dots at the end points (as they are included in the function).