prob12 partial soln, prob12 soln