Task 4. Determine the largest number by which 845 and 275 should be divided, so that the remainder in both cases is 5.
Solution. The numbers $845-5=840$ and $275-5=270$ are divisible by the same number. We are looking for the largest of them, i.e., GCD $(840,270)=30$. Then the desired number is 30.