We can calculate the margin of error, ME, using the following formula:
where, p is the proportion, n the sample size, and z is the z-score,
for this example:
z = 1.96 because the confidence level is 95%
p = 28/147
n = 147
let's replace and solve
solving this, we obtain
which is the same as:
ME = 6.3%