(1) Compute PX(x) by summing over y:

PX(x)=yPX,Y(x,y)PX,Y(x,1)+PX,Y(x,2)x30(12+22)x6

(2) Compute PY(y) by summing over x:

PY(y)=xPX,Y(x,y)y230(1+2+3)y25