Solution to Problem 39.