Solution to problem 32