solutions to midterm 1 2012 8449489