For the first sample the sum is and the sum of squartes is

Similarly for the second sample the sum is and the sum of squares is

Now compute the sum and sum of squares for the combined sample and so the mean and SD.

(If the SD uses the weighting rather than the above will need adjusting in the obvious manner)

CB