.
See how I edited your post to make sense :
Let X and Y represent discrete random variables with probability density function
for x ∈ {1,2,3} and y ∈ {1,2}.
Compute P(X = 1 and Y = 2) and P(X +Y = 4).
Without this editing the post MAKES NO SENSE.
Solution
(a) P(X = 1 and Y = 2) = f(1,2) =
=
=
. ANSWER
(b) Notice that X + Y = 4 is possible only if (X=3 AND Y=1) OR (X=2 AND Y=2).
Therefore,
P(X + Y = 4) = P(X=3 AND Y=1) + P(X=2 AND Y=2) = f(3,1) + f(2,2) =
+
=
=
. ANSWER
Solved.