a word problem involving polynomial