prob 18 and 67 solutions