problem 5 solutions