I would like to help me with this homework:

Let be the adjacency matrix of and the adjacency matrix of . Asume that every vertex of is distinguished.

How many sub-matrices of ,if we apply some reorder so much to their(submatrices) rows as to their columns, are equal to ?

Thank you in advance