Representing linear equations for a word problem