Problem 6 Explanation