Solution to Problem 24