Answer:
The value of y is 5.
Step-by-step explanation:
We have been given that y varies directly with x. Thus, we have

Now, y is 2.5 when x is 5. Thus, we have

Divide both sides by 5, we get

Now, we have to find y when x is 10.

Therefore, the value of y is 5.