arithmetic - a number when divided successively by 3 and 7 leaves remainders 2 and 5 respectively when it is successively divided by 7 and 3 then the respective remainders will be - skillgun

3 | x y = (7 x 1 + 5) = 12
--------
7 | y -2 x = (3 x y + 2) = (3 x 12 + 2) = 38
--------
| 1 -5
Now, 38 when divided successively by 7 and 3, we get
7 | 38
---------
3 | 5 - 3
---------
| 1 - 2
Respective remainders are 3 and 2.