- transform it into a well known problem
After to the remaining problem is for practical purposes identical to Xuanxuan Qijing Problem 34.