first term=a
second term=b=ar where r is common difference......
r=b/a
last term= l =ar^(n-1) where n is total no. of terms................
r^n=lr/a=lb/a^2
put in the formula for sum of a g.p
=a(1-r^n/1-r)
solve and u get:::::
(a^2-lb/a-b)
rate if u like..............