Zhang Qiujian Suanjing/Examples

Example $1$
When he had gone $37$ miles, the owner discovered the theft and pursued the thief for $145$ miles;
When he turned back, the thief was riding $23$ miles ahead of him;