When two variables vary directly they follow the next:
k is a constant.
Use the given data: when x=48, y=36 o find the value of k:
Then, x and y vary directly following the next equation:
Use the equation above to find x when y=18:
Then, the value of x when y=18 is x=24