Hello, thank you for taking the time to post your question!
The underlying formula that you want to use here is
Confidence Internal = p-hat +/- [z* x SE]
For this question we have
p-hat = sample proportion = 0.20
z* = 2.576 for a 99% level
SE = sqrt(p-hat(1 – p-hat)/n)) = sqrt(0.20(1 – 0.20)/40) = 0.0632
Putting it all together then gives us
CI = 0.20 +/- [2.576 *0.0632]
=0.20 +/- 0.1629
=0.0371 to 0.3629
So the 99% confidence interval for this scenario is (0.0371 to 0.3629)
I hope that helps get you moving in a better direction on this type of question! Feel free to reach out if you have any additional questions beyond that :)