Answer is b. b. the bacteria transform nitrogen into useful forms for the plants; the plants provide carbohydrates.
In the root nodules of many legumes, symbiotic nitrogen-fixing bacteria called Rhizobia reside. The relationship between a host legume and the Rhizobia is symbiotic or mutualistic in which both partners get benefit. Once the Rhizobia have established themselves in the root nodule, the plant provides carbohydrates (food) to the bacteria, and in return the Rhizobia provide ammonia for the formation of amino acids and nucleotides.