Step 1: Write the names and number of days of all 12 months in a table
Step 2: Write R1 : (Jan'uary', Jan'uary'), (Jan'uary', Febr'uary') etc. Only May will not fall in this set (as it has only 3 letters), otherwise all the months, will at least once be there. R1 = {(Jan, Jan), (Jan, Feb), (Feb, Jan), (Feb, Feb), (Mar, Mar), (April, April),(June, June), (July, July), (Aug, Aug), (Oct, Oct), (Sept, Sept), (Sept, Nov), (Sept, Dec),(Nov, Sept), (Nov, Nov), (Nov, Dec), (Dec, Sept), (Dec, Nov), (Dec, Dec)}
Step 3: Then you make another table, for R2, here some months have 31 days, some months have 30 days, February has 28 or 29 days.
So this set can be classified into 3 classes; class 1: those who have 31 days, class 2: those who have 30 days, class 3: February (28 or 29 days)
Step 4: Then you define R3. From the 3 classes that we assumed, 7 pairs will be there in R3 starting with January. These are {(Jan, Jan), (Jan, Mar), (Jan, May), (Jan, July), (Jan, Aug), (Jan, Oct), (Jan, Dec)}. Moreover, (Jan, Feb) is in R1, and Feb is in another partition in S due to R2. So there are total 8 pairs (adding (Jan,Feb) with previous 7 elements) in R3 starting with Jan. Likewise for all 12 months you need to calculate.
Step 5: Then you need to add the numbers of pairs.
Also please check the practice solution PDF that we uploaded.