This question was asked in Example 1
Define sample space of random experiment

Sneha Hadapad's image