First LCM of 20, 25, 35 and 40, using prime factorization method
20 = 2×2×5
25 = 5×5
35 = 5×7
40 = 2 x 2×2×5
LCM (20,25,35, 40) = 1400
As per given statement, we have to find the greatest number which when divided by 20, 25, 35 and 40 leaves remainder as 14 , 19, 29 and 34 respectively
i.e. 6 less than the divisor in each case.
Required number = 1400 – 6 = 1394
1394 is the required number.