Solve math equations step by step. Written as an exercise.