Solutions for Problem 6 and Problem 7