Problem 5 Explanation