Word problems and equations involving motion