The question is:
Find the largest number which when divided by 20,25,35 and 40 leaves a remainder of 14,19,29 and 34 respectively.
The solution is to find the difference which in this case is 20-14=6,25-19=6 and similarly for others.
Then finding GCD of all the numbers 20,25,35 and 40 and subtracting 6 from the obtained GCD.
I really did not understand why this solution works, if anyone could explain me the logic behind this in plain english. I am sorry I am weak in mathematics.
If $x$ is the required number, $x+6$ will be divisible by lcm$(20,25,35,40)$