To calculate the size of the sample we use the following formula:
![n=(Z^2P(1-P))/(d^2)](https://img.qammunity.org/2023/formulas/mathematics/college/tipoj6d4sam7ud7c8hdffsrq4gt4g6lc6f.png)
N is the size of the sample, P is the expected proportion of people liking lettuce (36% for this case) and d is the precision, 4% in this case. Z is the Z score for confidence. In this case, 90% of confidence will have a Z value of 1.645.
Then, applying the formula:
![\begin{gathered} n=(1.645^2\cdot0.36(1-0.36))/(0.04^2) \\ n=389.66 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/9rqektdc1zlkn0x0s68bk3dgytaz2p53nt.png)
Rounding to the unit, the sample size should be 390.