3300469

Number of possible ways to pair elements from two datasets

I have a problem counting all the possible ways of "pairing" two datasets of size n and m, including partial pairing.

$$ Ens(X) \cdot Ens(XY) \cdot Ens(Y) $$