I am really confused on how to do these and I would like if anyone can help here. Thanks if anyone can help

For numbers 1 and 2, find and1. n = 500, x = 1002. n = 1068, x = 325

For numbers 3 and 4, find the maximum error of the estimate and the appropriate confidence interval.3. n = 400, x = 100, 95% confidence interval4. n = 512, x = 309, 99% confidence interval