Answer:

Explanation:
If y is directly proportional to x, then


where, a is constant of proportionality.
If y is inversely proportional to x, then


where, b is constant of proportionality.
It is given that y be the difference of two numbers such that one number varies directly as x while the other number varies inversely as x.
..... (1)
We have y=-7 at x=-2.



Multiply both sides by 2.
.... (2)
We have y=5 at x=1.

.... (3)
Add equation (2) and (3).


Divide both sides by -3.

The value of a is 3.
Substitute a=3 in equation (3).



The value of b is -2.
Substitute a=3 and b=-2 in equation (1).


Therefore the required equation is
.