problem 54, beginning