y = k; k is variation constant
we have:
y = 3 when x = 7.5
[tex]\begin{gathered} 3=k\times7.5 \\ \frac{3}{7.5}=\frac{k\times7.5}{7.5} \\ k=\frac{3}{7.5}\text{ or k=}\frac{2}{5}\text{ or k = 0.4} \end{gathered}[/tex]thus the variation equation is
[tex]y=0.4\times x[/tex]then, when x=18
[tex]\begin{gathered} y=0.4\times18 \\ y=7.2 \end{gathered}[/tex]