Actual coverage will always differ somewhat from what is printed here. Bacteria provide ammonia by nitrogen fixation, create special anaerobic microenvironments in which this can happen.
Plants provide nutrients and shelter.
When bacteria are removed from nodule, cannot carry out nitrogen fixation. Some of needed gene products come from plant genes. Also other types of symbionts, e.g. Frankia that live in Alder roots, create nodules. R eat grasses containing mainly cellulose, but lack enzymes to digest cellulose. Bacteria and Protists in rumen produce cellulases, hydrolyze cellulose to sugar which is then fermented.