solutions for midterm two version a 9175197