We want to estimate the proportion of consumers each of whom uses detergent of same brand.
$$\begin{align} p&:=\text{population proportion}\\ &0.8<p<0.9\\ \end{align}$$
We want to find out the minimum sample size $~ n ~$ which makes the difference between the sample proportion $~ \hat p ~$ and the population proportion$~ p ~$ less than or equal to $~ 0.02 ~$ , with least probability of $~ 0.99 ~$
The following is the official answer for the solution.
As sample size $~ n ~$ is large and the following approximate eqn is held,
$$\begin{align} \color{red}{\underbrace{Z={\hat p-p \over \sqrt{{pq \over n }} }\sim\mathcal N(0,1)}_{\text{How this emerged?} }} ~~~~~~~~(q:=1-p) \end{align}$$
the following is satisfied.
$$\color{red} {\underbrace{{P(|Z|<2.576)=0.99}}_{\text{What is this} } } $$
The following is the remnant for the soln.
$$\begin{align} P(\left| \hat p-p \right|<0.02 )&\geq 0.99\\ 2.576 \sqrt{{pq \over n }} &\leq 0.02\\ \therefore n&\geq \left({2.576 \over 0.02 } \right)^2pq\\ \operatorname{arg}\max_{p\in[0.8,~0.9]}(p(1-p))&=0.8\\ n\geq \left({2.576 \over 0.02 } \right)^2\times0.8\times0.2&\approx2654.3\\ \min(n)&=\operatorname{ceil}(2654.3)\\&=2655 \end{align}$$
I presume that the first red-marked eqn is one of typical formulas.
Can anyone tell me the name of it?
BTW the space between $~\operatorname{arg}~$ and $~\operatorname{max}~$seems large. I wonder if there some good way to shrink it.
$n\hat{p}$ is the number of customers in your sample who use the detergent. It is a $\text{Binomial}(n, p)$ random variable which has mean $np$ and variance $npq$.
By the normal approximation to the binomial distribution, $n\hat{p}$ is approximately normal with mean $np$ and variance $npq$.
By shifting by the mean $np$ and scaling by the standard deviation $\sqrt{npq}$, we see that $\frac{n(p-\hat{p})}{\sqrt{npq}} = \frac{p-\hat{p}}{\sqrt{pq/n}}$ is approximately standard normal. This explains the first red equation.
The second red equation comes from reading a standard normal table or using a computer to compute the value $\alpha$ such that $P(|Z| < \alpha) = 0.99$. It turns out it is $\alpha\approx 2.576$.
Regarding typesetting "argmax", you need to define a custom command since Latex doesn't have a built-in command for it. See here.