X is partly constant and partly varies as y . When y is 19, x is 24 and when y is 14, x is 36. Find x when y is 5.

x = a+by

so plug in your numbers and you have
a+19b = 24
a+14b = 36
Solve for a and b, and then you can find x for any value of y.