If I'm sampling 50 people and 35 people liked Pepsi instead of Coke how can i apply that to the test statistics for a mean

t=x(bar)-mule/s/ square root n

To apply this information to the test statistic for a mean, you would need additional information. The formula you mentioned, t = (x̄ - μ) / (s / √n), is used to calculate the t-test statistic.

In this case, it seems like you are comparing the preference for Pepsi over Coke among a sample of 50 people. However, the formula you presented assumes that you have data for the mean and standard deviation of a population, represented by μ (mu) and s (sigma) respectively.

If you are interested in conducting a t-test to compare the mean preference for Pepsi to a specific value (μ), you would need to clarify what that value is, and also provide the sample mean (x̄) and the sample standard deviation (s). Additionally, you might want to clarify if your data follows a normal distribution and if the sample is independent and random in order to apply the t-test.

Please provide more information so I can assist you further in calculating the test statistic.