You have an unknown quantity of oil in a barrel and have only a 3 and 5 gallon containers?
Fill the 3 gallon container. Empty it into the 5 gallon container. Refill the 3 gallon container and use it to fill the 5 gallon container to the full, five gallon mark.
You have just added 2 gallons to the 5 gallon bucket leaving only one gallon in the 3 gallon container.
The Oil problem is painfully easy.
You have an unknown quantity of oil in a barrel and have only a 3 and 5 gallon containers?
Fill the 3 gallon container. Empty it into the 5 gallon container. Refill the 3 gallon container and use it to fill the 5 gallon container to the full, five gallon mark.
You have just added 2 gallons to the 5 gallon bucket leaving only one gallon in the 3 gallon container.
Love the RL problems heh