5.8.5 Step 2: Solve the problem