Since you have the formula which uses the "inverse" of B, do you know how to find the inverse of a matrix? Or do you know how to do "row reduction" of a matrix?

You might find these interesting:

[‪Determining Inverse Matrices Using Augmented Matrices‬‏ - YouTube32.3 The Inverse of a Matrix