a) In the tape diagram, each one of the (x-2)-sections represents one week that Andre worked. The 40 above the 5 sections indicates that after 5 weeks, he will save $40.
b) Algebraically, the tape diagram is
Solve for x as shown below
The answer to part b. is $10.