Solution to problem 49.