Math teacher's word problem upsets parent