Word problems with equations