For direct variation, an increase or decrease in one variable leads to a proportional increase or decrease in the other variable
Given that y varies directly with x, we would introduce a constant of proportionality, k
The expresion becomes
y = kx
For x = 2 and y = 5,
5 = 2k
k = 5/2 = 2.5
The direct variation equation is
y = 2.5x