solution to final exam problem two fall 2012 7342371