Let the sum of first n terms of two A.P's be Sn and S′n.
then, SnS′n=n2{2a+(n−1)d}n2{2a′+(n−1)d′}
= 7n+14n+27
a+(n−12)da′+(n−12)d′=7n+14n+27 ...(i)
Also, let mth term of two A.P's be Tm and T′m
TmT′m=a+(m−1)da′+(m−1)d′
Replacing n−12 by m-1 in (i), we get
a+(m−1)da′+(m−1)d′=7(2m−1)+14(2m−1)+27
[∵ n−1=2(m−1)⇒n=2m−2+1=2m−1]
∴ TmT′m=14m−7+18m−4+27=14m−68m+23
∴ Ratio of mth term of two A.P's is 14m−6:8m+23