Mila is working two summer jobs, making $9 per hour babysitting and $17 per hour lifeguarding. Last week Mila earned a total of $138 and worked 2 more hours lifeguarding than hours babysitting. Determine the number of hours Mila worked babysitting last week and the number of hours she worked lifeguarding last week.
Let the variable b represent the number of hours spent babysitting.
Then, the number of hours spent lifeguarding = b + 2.
Amount of money made: 9·b + 17·(b + 2) = 138
Simplifying: 9b + 17b + 34 = 138
26b + 34 = 138
26b = 104
b = 4 <--- hours spent babysitting
b + 2 = 6 <--- hours spent lifeguarding