If f(x) varies directly with x, and f(x) = 18 when x = 2, find the value of f(x) when x = 6.

A.
6

B.
18

C.
36

D.
54