Let y = number of carrots
Let x = time in hours.
The general equation for a direct variation is:
y = kx
We need to find the value of k.
We know that for x = 2 (2 hours), y = 250 (250 carrots).
250 = k * 2
k = 250/2
k = 125
Now we replace k with 125.
y = 125x