Writing number sentences to represent addition and subtraction word problems