Let x be the weight of fertilizer. The weight of soil may be expressed as 3x + 2. Lastly, the weight of compost is x/2. The sum of all these weights is equal to 29 kilograms.
x + (3x + 2) + (x/2) = 29
The value of x is 6. Thus, the answer is letter B. 6 kg.