The edge bg has to be in the MST
This problem reduces to multiplying subproblem A and B
subproblem A is identical to B
so it is A^2
Subproblem A:
Number of Spanning tree of abcd subgraph
Using Kirchoff's Matrix tree theorem,
make adjacency matrix out of this
replace diagonal by degree of vertices
and non diagonal elements just put their additive inversive in their place.
now find Minor of any element.
it is given by formula

When you solve it you will get this matrix

Now A= 8
A^2 is 8*8 = 64
Reference
https://ocw.mit.edu/courses/mathematics/18-314-combinatorial-analysis-fall-2014/readings/MIT18_314F14_mt.pdf