Find matrix A and B such that

Suraj Shirke's image