If y varies directly with x, this means that each time x increases one unit, y gets modified k times:
You can symbolize this as
When y=20, x=4, with this you can determine the value of k as:
k=5 means that every time x increases one unit, y will increase 5 units.
Now you can calculate the value of y for x=2 as
When x=2, y=10