I am learning Welch's t-test and I successfully found that, in a two sample test, $t=2.968$ and the degree of freedom is $5.1$. I then go to an online p-value calculator for the p-value at 0.05 significance level. The results are as follows.
The problem is that I don't understand how the number $0.030478$ is generated. I tried to look at the two-tailed t-distribution table, but then I am not sure how to interpolate the p-value from the table.

Can anyone explain why $0.030478$ is the p-value here? Is it possible to get this number with the t-distribution table and a calculator only? I would like to learn how to get this number without the help of online calculator. Thanks in advance.
