it depends on the order of the matrix A and B
for e.g
if the question says....(1 2) * X = (5 6 7)
(3 4) (8 9 2)
then for that X = (1 2) * (5 6 7)
(3 4) ( 8 9 2)
this is because the no. of colums of the first matrix = the no. of rows of the second matrix
=> (2) = (2)
first matrix = (1 2)
(3 4)
second matrix = (5 6 7)
(8 9 2)
Good luck