Answer:
Direct variation states that:

then, the equation is in the form of:
, where k is the constant of variation.
As per the statement:
y varies directly as x, and that y = 12 when x = 3
By direct variation:
y = kx
Substitute the given values we have;

Divide both sides by 3 we have;
4 = k
or
k = 4
⇒ y =4x .....[1]
Now, when x = 10 find y;
Substitute value of x in [1] we have;

⇒y = 40
Therefore, the value of y is, 40