TheEmptySet is right; basically, you are applying elementary row (or column) operations to the first matrix to get the second one. Each row operation does something specific to the determinant.
I just wanted to ask something that wasn't clear to me, from the way that you asked the question...
You ARE aware that they are asking for determinants, correct? Just asking because I didn't see you use the word anywhere, but you did say stuff like "Matrix A = 6", which doesn't really make any sense.
Do another elementary row operation: row swapping, adding or subtracting rows, or multiplying by a scalar. Keep doing that until you obtain the 2nd matrix.
Also note, adding/subtracting rows has no affect on the determinant; multiplication scales the determinant by the factor of x; and swapping multiplies the det by -1.