solution to final exam problem three fall 2012 7789369