Suppose you would like to compute
\begin{align}
Q_1(x_1,x_2;B) &= \Bbb{E}[X_1\max(B-X_2,0)]\\
Q_2(x_1,x_2;B) &= \Bbb{E}[X_2\max(X_1-B,0)]
\end{align}
where you know the marginal probability density functions $p_{X_1}(u)$ and $p_{X_2}(v)$.
Let's start by focusing on $Q_1$. By definition, the expectation equivalently writes:
$$ Q_1(x_1,x_2;B) = \int_0^\infty \int_0^\infty u \max(B-v,0)\, p_{X_1X_2}(u,v) du dv $$
where $p_{X_1X_2}$ figures the joint probability density function of random variables $X_1$ and $X_2$:
$$ p_{X_1X_2}(u,v) = p_{X_1 \vert X_2 = v}(u) p_{X_2}(v) $$
[Case 1: $X_1$ and $X_2$ are independent]
Then by definition
$$ p_{X_1 \vert X_2 = v}(u) = p_{X_1}(u) $$
and we have (Fubini)
\begin{align}
Q_1(x_1,x_2;B) &= \int_0^\infty \int_0^\infty u \max(B-v,0)\, p_{X_1}(u) p_{X_2}(v) du dv \\
&= \int_0^\infty u p_{X_1}(u) du \int_0^\infty \max(B-v,0) p_{X_2}(v) dv \\
&= \Bbb{E}[X_1] \Bbb{E}[\max(B-X_2,0)]
\end{align}
which you know how to solve since you know the marginals.
[Case 2: $X_1$ and $X_2$ are not independent]
The marginals do not suffice: you need an assumption concerning the dependence structure of $X_1$ and $X_2$. Your question amounts then to saying, "can I infer a unique dependence structure from the knowledge of $Q_1$ and $Q_2$", the answer is no. The intuition behind that is given in this SE question.