Representing Linear Equations for a Word Problem