Mike T. answered 11/04/19
Experienced, thoughtful chemistry, math, and physics tutor
A = A11 A12
A21 A22
B = B11 B12
B21 B22
AB = A11*B11+A12*B21 A11*B12+A12*B22 = X = X11 X12 = -6 -9
A21*B11+A22*B21 A21*B12+A22*B22 X21 X22 7 0
Now you have 4 equations and 8 unknowns, meaning there are many possible solutions. One strategy is to arbitrarily choose the elements in one matrix (make sure it has a non-zero determinant) and solve for the elements of the second.
Hope that helps,
Mike