solutions for the subjective midterm exam 6521107