Answer:
y = 2.5x
Explanation:
assuming you require the equation connecting x and y
given y varies directly as x then the equation relating them is
y = kx ← k is the constant of variation
to find k substitute x = 18, y = 45 into the equation
45 = 18k ( divide both sides by 18 )
= k , that is
k = 2.5
y = 2.5x ← equation of variation