Creating and solving an equation from a word problem