Answer:
The value of m is 36.
Explanation:
It is given that y varies directly as x. It means y is proportional to x.


Where k is constant of proportionality.
It is given that y=24 when x=12. Put x=12 and y=24 in the above equation to find the value of k.

Divide both sides by 12.

The value of k is 2.
The relation between x and y is defined by the equation

Put x=18 in the above equation.


Therefore the value of m is 36.