"Reversed" Clebsch Gordan coefficients
If I understand well, the coefficients $B$ are just in fact CG's: to be explicit $$ \vert j_1m_1; j_2m_2\rangle = \sum_{J(M)} C^{j_1j_2J}_{m_1m_2M} \vert JM\rangle $$ Note the sum of $M$ is not really a sum as $M$ must satisfy $M=m_1+m_2$.
The best way to see this is to start with $\vert j_1m_1; j_2m_2\rangle$ and just insert the unit $I=\sum_{JM}\vert JM\rangle\langle JM\vert$. One then has $$ \vert j_1m_1; j_2m_2\rangle=\sum_{JM}\vert JM\rangle\langle JM\vert j_1m_1;j_2m_2\rangle $$ with $$ \langle JM\vert j_1m_1;j_2m_2\rangle = \langle j_1m_1;j_2m_2\vert JM\rangle = C^{j_1j_2J}_{m_1m_2M} $$ since the CGs are real.
The way you ask the question now, it can't quite be done. That's because if you tell me $J$ and $M$, there's lots of ways for $j_1$ and $j_2$ to get to that. If the total angular momentum is $0$, for example, then there's an infinite number of possibilities for $j_1$ and $j_2$ to get me to $0$. They could both be spin 1/2, or they could both be spin 1. Or they could both be spin 42.
However, if you specify what $j_1$ and $j_2$ are, then it is easy to reverse the Clebsch-Gordan coefficients via the insight that they form an orthogonal relationship.
Basically:
$$|j_1, m_1, j_2, m_2\rangle = \sum_{J,M'} |J,M\rangle \langle J,M | j_1, m_1, j_2, m_2\rangle$$
where the states $|J, M\rangle$ are restricted to those that you can actually form out of $j_1$ and $j_2$.
And, well that braket is just the Clebsch-Gordan coefficient $C_{m_1, m_2, M}^{j_1, j_2, J}$. Well, technically it's its complex conjugate, but since the coefficients are real-valued in the typical phase convention, that distinction doesn't matter.
The Clebsch-Gordan coefficients contain enough information to calculate the inverse, since $$\langle j_1 j_2 m_1 m_2 | jm \rangle = C^{j_1, j_2, j}_{m_1, m_2, m}.$$ Conjugating, the matrix elements you're looking for are $$\langle jm | j_1 j_2 m_1 m_2 \rangle = (C^{j_1, j_2, j}_{m_1, m_2, m})^*.$$