number of weeks
Generally equations are in the form:
y = mx + b
Where
x is the independent variable, you can choose any value for x
y is the dependent variable. The value of y depends on x.
In the graph, the x-axis is number of weeks and y-axis is amount.
Amount depends on the number of weeks, which is the independent variable, here in this graph.