Broke down part B of problem 2