Question: how to calculate the joint probability mass function?
Answer: The joint probability mass function of two discrete random variables X and Y is defined as PXY(x,y)=P(X=x,Y=y). Note that as usual, the comma means "and," so we can write PXY(x,y)=P(X=x,Y=y)=P((X=x) and (Y=y)).