Say you’ve got two sample groups of single real-valued measurements. Call them S and T, with |S| = m and |T| = n. Call the combined group of measurements X.
Since the boards don’t offer great notation, I’ll use ave() to denote the sample mean, and var() to denote the (unbiased) sample variance. It’s easy to derive that ave(X) = m/(m + n) * ave(S) + n/(m + n) * ave(T). What is var(X) in terms of var(S) and var(T)?
If I was at home, I could do this–I know all the formulas but the algebra is involved.