The sample size is denoted by n, and we let x denote the number of "successes" in the sample. The 95% confidence interval is a range of values that you can be 95% confident contains the true mean of the…