The matrix group G generated by A and B is a homomorphic image of BS(m, n), via the homomorphism induced by
It is worth noting that this will not, in general, be an isomorphism. For instance if BS(m, n) is not residually finite (i.e. if it is not the case that |m| = 1, |n| = 1, or |m| = |n|[1]) it cannot be isomorphic to a finitely generated linear group, which is known to be residually finite by a theorem of Anatoly Maltsev.[2]
^Anatoliĭ Ivanovich Mal'cev, "On the faithful representation of infinite groups by matrices" Translations of the American Mathematical Society (2), 45 (1965), pp. 1–18