Creating linear equations from word problems