Three jugs of water can fill a bucket. If the jugs have a capacity of 38 litres, 12 litres, and 16 litres, what is the capacity of the bucket?