
Two fair 6-sided dice with faces labelled 1, 2, 3, 4, 5, 6 are thrown. The two scores are noted. The random variable
is defined as follows.
If the two scores are equal, 
If the scores are not equal,
is the larger score minus the smaller score
Find
and
.