linear equatiions for word problems