the dependent variable (y) is the factor that is based off of the independent variable (x)
Example:
One shop sells 4 oranges every hour
In this situation the dependent variable is the amount of oranges sold and the independent variable is the amount of hours because the number of oranges sold depends on how long the store has been open.
hope this makes sense :)