The capacities of 3 buckets are in the ratio 3:2:4. If the total capacity of the 3 buckets is 36 liters, find the capacity of the smallest bucket?