Solution for problem 32.