Click here to read the complete problem statement.

If i calculate 2,3,5 LCF that means 30 and apple suppose 299, so if i divide 299/30 then 30*9=270 so there are 29 apples remaining, This is my logic but my answer was wrong. So can anyone explain the full way. Thank you.

The answer will be 270