I'm actually surprised that they would give an 8th grader this question.
The formula you want to use is:
Where M is the amount of money made and t is the time in weeks.
Set M = 1,000,000 and solve for t.
Do you even know how to do this in 8th grade?