solution to final exam problem one fall 2012 9736361