Here, C= cat ; D= dog ; R= rat c=10-r; D= 20-r 10-r+20-r=24 -2r+30= 24 -2r = -6 r=3 So, c+3=10 gives c=7 D+3 = 20 gives d =17 c+d+r =7+17+3= 27