Your table seems to be just the summary statistics. If you have the raw data, then PROC TTEST does this easily, see figure 125.4 here: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_ttest_gettingstarted02.htm
If you don't have the raw data, the formula for pooled standard deviation is given in many textbooks, web sites and even at Wikipedia, and I urge you to do a search to find the proper formula.
... View more