Let the two A.P's be a,a+d,a+2d,.... and a′,a′+d′,a′+2d′,....
Let their sum be Sn and S′n respectively.
∴Sn=n2[2a+(n−1)d] and S′n=n2[2a′+(n−1)d′]
∵SnS′n=3n−135n+21
∴a+(n−12)da′+(n−12)d′=3n−135n+21⋯(1)
The 24th terms of two A.P's are respectively
T24=a+23d and T24=a′+23d′
∴T24T′24=a+23da′+23d′⋯(2)
Comparing (1) and (2), we get
n−12=23
∴n=47
from (1),a+23da′+23d′=3×47−135×47+21
=12
∴T24T′24=12
⇒T24:T′24=1:2