It is given in the question that
y varies inversely as x^2 and y = 3 when x = 18.
SInce y varies inversely as square of x, so the formula will be

Where k is the constant of proportionality .
Substituting the values of y and x, we will get


Multiplying both sides by 324,

So the equation will be

And when x equals 3, we will get

Therefore the correct option is B .