Solution:
Let and be the number of observations in two groups having means and respectively. Then
Now,
If the means of two distributions such that is the mean of the combined distribution then
Let and be the number of observations in two groups having means and respectively. Then
Now,