There are three random variables $A$, $B$ and $C$. If the variables $A$ and $B$ were independent, their marginal joint distribution would be given by $$ P(A,B) = P(A)P(B) $$
For example, given the discrete probability distributions of $A = \{ A_1, A_2 \}$:
A1 0.6
A2 0.4
and of $B = \{B_1, B_2 \}$:
B1 0.4
B2 0.6
The joint probability distribution would then be $P(A,B)=P(A)P(B)$:
A1 B1 0.24
A1 B2 0.36
A2 B1 0.16
A2 B2 0.24
However, If the variables are not independent, and we know the marginal joint distributions of $P(A,C)$ and $P(B,C)$, e.g.
A1 C1 0.4 B1 C1 0.1
A1 C2 0.2 B1 C2 0.3
A2 C1 0.2 B2 C1 0.5
A2 C2 0.2 B2 C2 0.1
Is that enough to build the joint distribution of $P(A,B,C)$? And, additionally, the marginal joint distribution of $P(A,B)$?
C1
is $0.4+0.1=0.5$ while also asserting it equals $0.1+0.5=0.6.$ The question might be clearer to some readers if the example actually had a solution. That might help everyone see that in general there are many solutions. $\endgroup$