solutions for third midterm 158549