Given :
x varies directly with y.
So, the relation between them will be :
[tex]y=k\cdot x[/tex]Where x is the constant of proportionality
Given x = 12 when y = 9 , the constant k will be :
[tex]\begin{gathered} 9=k\cdot12 \\ k=\frac{9}{12}=\frac{3}{4} \end{gathered}[/tex]So, the relation will be :
[tex]y=\frac{3}{4}x[/tex]We need to find y when x = 28
So, substitute with x = 28
[tex]\begin{gathered} y=\frac{3}{4}\cdot28 \\ \\ y=21 \end{gathered}[/tex]