In a mixed series, the terms in odd positions form an AP with first term p and common difference q, while the terms in even positions form a GP with first even term g and common ratio r. Derive a simplified expression for the sum S2n of the first 2n terms.