Task 2. Lazarot Petre has 151 liters of wine in a storm. Help Petre, as a friend, to give away 81 liters of wine if he has only 2 barrels that hold 51 and 91 liters.
Solution. Lazarot Petre will fill the 91-liter barrel, then transfer 51 liters to the smaller barrel, leaving 41 liters in the larger barrel. The wine in the 51-liter barrel will be returned to the cask, and the remaining 41 liters in the larger barrel will be transferred to the empty 51-liter barrel. He will refill the larger barrel with 91 liters again and top up the smaller barrel with 1 liter from it, leaving 81 liters of wine in the larger barrel, which he will sell to his friend.