In the first example we have:
Organism 1: Bacteria (Rhizobium spp.) (benefits)
Organism 2: Plants (Legumes) (benefits)
Sybiotic relationship: Mutualism :) , :)
In the second one:
Organism 1: Fungus (Laetiporus spp.) (benefits)
Organism 2: Trees (e.g. Oak) (harmed)
Sybiotic relationship: Parasitism :) , :(