To find the confidence interval for a proportion, we use the following formula:

Where:
p is the sample proportion
z the chosen z-value
n sample size
Since we want to make a confidence interval of 95%, we need to use z = 1.96. The sample size is n = 879.
We can use cross multiplication to find p, which is the percentage of the total sample size that preferred foreign cars:

p is the proportion in decimal, we need to divide by 100:

Now, we can use the formula:


Thus, the answer is:
Lower endpoint: 0.297
Upper endpoint: 0.359