.
The elements of the sample space S are all ordered pairs (m,n) of integer numbers 1 <= m <=6 and 1 <= n <= 6.
In all, there are 6*6 = 36 such pairs.
The set A is this: { (1,1), (1,2), (2,1), (1,3), (2,2), (3,1) }. It contains 6 elements (6 pairs with the sum <= 4).
The set B is this: { (6,6) }. It contains only one element (one pair).
Answered and solved.