207. Young Bandits. Three young "highwaymen," returning from the cinema, met a vendor with apples. Tom grabbed half of all the apples, but threw 10 back into the basket. Ben took a third of the remaining apples, but returned 2 apples he didn't like. Jim took half of the remaining apples, but threw back one wormy one. The vendor was left with only 12 apples in the basket.

How many apples did the vendor have before the raid?
207. The vendor had 40 apples. Tom left her 30, Bob 22 and Jim 12 apples.