problem 12 two solutions