So, there i a LOT of calculating to do here. I will try to summarize:
A minor of a matrix A is the determinant of some smaller square matrix, cut down from A by removing one or more of its rows and columns.
E.g the minor for a_11 is the matrix
1 1 3
1 1 0
0 -1 -2
The cofactor of an element is the minor but a factor, with that factor being (-1)^(i+j) where i and j are the row and column of the element