midterm2sols.pdf