It's clear your DD understood. The teacher is being rigid and pedantic.