Since the circuit breaker B32 and B51 circuit breaker are open, the reactance between the line 3 and 5 will not consider.
Draw the single line diagram as,

The admittance of the generator 1,
The admittance of the generator 2,
The admittance of the generator 3,
Calculate the bus admittance matrix by including the load admittances and inverted generator impedances
Calculate the admittance between the line 1 and 2.
Calculate the admittance between the line 1 and 3.
Calculate the admittance of line 1.
Calculate the admittance between the line 4 and 2.
Calculate the admittance of line 2.
Calculate the admittance between the line 3 and 5.
Calculate the admittance of line 3.
Calculate the admittance between the line 4 and 5.
Calculate the admittance of line 4.
Calculate the admittance between the line 5 and 6.
Calculate the admittance of line 5.
Calculate the admittance of line 6.
Calculate the load admittance matrix at line 3,
Substitute for , 2.0 pu for and 1pu for into above equation.
Calculate the load admittance matrix at line 4,
Substitute 2pu for , for and for into above equation.
Therefore, the matrix ,
Calculate the matrix .
Substitute for ,for ,and for into equation (3).
Calculate the matrix.
Substitute for, for ,and for into equation (2).
Hence the matrices and are