midterm2-prob5-4