1)
spanning tree will contain 5 edges out of 7 edges and edges AB and AC must be in spanning tree.
so, now, we have to select 3 edges out of 5. ==>5c3=10
But, we'll have to remove cycles i.e., CDE & EDF
so, total spanning tree=10-2=8.
--------------------------------------------------------------------------------------------------------------------------------------------
2)
Here, 4 edges to be selected out of 6.
total ways= 6c4=15
remove cycles==> if ABC then 3 invalid & if CDE then 3 invalid
so, total spanning tree= 15-6=9.
-----------------------------------------------------------------------------------------------------------------------------------
3)
4 edges to be selected out of 6.==> total = 6c4=15.
remove cycles=> if BDE then 3c1 & ABEC then 2c0
so, total spanning tree= 15-3-1=11.