Obtaining the perfect volume of petrol

You need 8 liters of petrol. Using two containers that can hold 12 and 9 liters, you can do any of the following actions as many times as you like:

  • fill a container to its brim;
  • completely empty a container;
  • pour petrol from one container to another.

Is it possible to get exactly 8 liters (in either container)?

×

Problem Loading...

Note Loading...

Set Loading...