Let
x---------> represent the number of weeks
y---------> represent the amount of money saved
we know that
for x=6 weeks y=40*6-------> $240
then
300-240--------> $60----------> initial amount for x=0
the equation is
y=40*x+60
the answer is
y=40*x+60