That is the correct answer. I will show you another way to think of it.

The matrix pattern where is not zero can be formed in ways.

The matrix pattern where is not zero can be formed in ways,butthere 4 of those patterns.

The matrix pattern where is not zero can be formed in ways and there are 2 of those patterns.

That gives the same answer.