The classic two-sample t-test pools the variances of the two groups. This page starts with “Assume equal variances” ticked, the textbook Student’s t-test, and shows a Levene check so you can confirm the assumption.
t = (x̄₁ − x̄₂) ÷ [ sₚ √(1/n₁ + 1/n₂) ], df = n₁ + n₂ − 2
If Levene’s test is significant, or the group sizes are very different, untick the box to run Welch’s t-test.