Is a new hair shampoo product actually effective? Ask participants to grade themselves on scale of 1-10 how attractive their hair is both before and after using a shampoo product after 2 weeks

Results

Subject Initial Rating (A) Rating After 2 Weeks (B)
1 1 5
2 2 3
3 5 5
4 3 7
5 6 5
6 3 6

give the values of the test statistic and the p-value for this test

I have no idea which test to use: avova, chi-squared, 1-var-stats....etc
Also I tried all of these and I cannot get the answer

I have the correct answer I just cannot figure out the process to get it!
Please help! Thank you!