Problem 8 Solution