solutions to first midterm 663997