Solution:

An urn containing 5 red and 2 black balls is presented.

Let’s call the red ball and the black ball .

Two balls are chosen at random.

As a result, the experiment’s sample space is .

The number of black balls is represented by .

X (BR) = 1

As a result, is a sample space function with a range of .

As a result, is a random variable with values of 0,1, or 2.