solutions for the practice midterm exam 3168812