Problem #PRU-87982

Problems Discrete Mathematics Algorithm Theory Theory of algorithms (other)

Problem

There is a 12-litre barrel filled with beer, and two empty kegs of 5 and 8 litres. Try using these kegs to:

a) divide the beer into two parts of 3 and 9 litres;

b) divide the beer into two equal parts.