S=(31+74)+(321+31×74+7242)+(331+321×74+31×7242+7343)+......∞
Take 31=a and 74=b.
S=(a+b)+(a2+a×b+b2)+(a3+a2×b+a×b2+b3)+......∞
Multiply both sides by (a-b).
S(a−b)=(a+b)(a−b)+(a2+a×b+b2)(a−b)+(a3+a2×b+a×b2+b3)(a−b)+......∞
S(a−b)=(a2−b2)+(a3−b3)+(a4−b4)+......∞
S(a−b)=(a2+a3+a4+......∞)−(b2+b3+b4+........∞)
We can see that (a2+a3+a4+......∞) and (b2+b3+b4+......∞) are in an infinite G.P.
(a2+a3+a4+......∞)=1−aa2
(b2+b3+b4+......∞)=1−bb2
S(a−b)=(1−aa2)−(1−bb2)
Now, insert the value of a and b in the above equation.
S(31−74)=1−31(31)2−1−74(74)2
S(31−74)=3291−734916
S(31−74)=(61)−(2116)
S(217−12)=427−32
S×21−5=42−25
S=25
Hence, the sum of the given expression is 25.
\therefore\ The required answer is C.