the cases in which both r1 and r2 will be equal are as follows
case1: when r1 generates strings which contains only 'a' for ex- a,aa,aaa...
then r1 will be equal r2 bcoz r2 can also generate it
case2 :
when r1 generates strings which contains only 'b' for ex- b,bb,bbb...
then r1 will be equal r2 bcoz r2 can also generate it
case3: when r1 generates strings which contains any no. of a's followed by any no. of b's for ex- ab,abb,aaabb...
then r1 = r2 bcoz r2 can also generate it
case4:
when r1 generates strings which contains any no. of b's followed by any no. of a's for ex- ba,bba,bbaa...
then r1 = r2 bcoz r2 can also generate it
case5: when both generate null string then also r1 = r2