Solving Word Problems using one variable