Final soln for 39