sum taken two at a time is S..
now S = { SM + sum of individual squares of g.p..} / 2
now wat is this individual square sum..
actually it is a g.p with first term a2 and common ratio r2 ........
so tht sum is equal to..a2 { a2m - 1} / r2 -1...
write this in term of SM and get the ans..