XY
x
x

Matrix A

Matrix B

Result