Example 13 : Suppose that the division x ÷ 5 leaves a remainder 4 and the division x ÷ 2 leaves a remainder 1. Find the ones digit of x.