Solved problem 118A.