problem 7 with two solutions