The formulas for both the discrete and continuous cases can be found here. In less than formal terms, p(x,y) = p(y|x)p(x).
Didn't find the answer you were looking for?