prob 25 solution