When you would like to compare two averages between samples, you could use such formulas of Student’s t-test as following chart according to the number and the variances between dependent or independent samples.
Paired t-test as below;
Independent two samples t-test with unequal sample sizes and unequal variances, called as Welch’s t-test, as below;
Independent two samples t-test with equal sample sizes and unequal variances as below;
Independent two samples t-test with unequal sample sizes and equal variances as below;
Reference:Student’s t-test