$$\textbf{Step 1: Draw the free body diagram and Resolving forces[ Ref. Fig.]} $$
$$F_{e}$$ is the Electrostatic force experienced between particle A and B.
The weight $$mg$$ of the particle can be resolved in two components as shown in the figure:
Along the incline plane: $$mg\ sin\theta$$
Perpendicular to the incline plane: $$mg\ cos\theta$$
where $$\theta = 30^o$$
Let particle B be placed at a distance $$x$$ from particle A.
$$\textbf{Step 2: Newton's Second Law} $$
For particle B to remain in equilibrium the electrostatic force between the particles will be balanced by the component of the weight of particle B along incline direction i.e. acceleration $$=0$$
So, Applying Newton's Second Law along incline direction(Positive Upwards):
$$\Sigma F= ma$$
$$F_e- mg\sin 30^{\circ}=0$$
$$\Rightarrow\ \ F_{e} = mg \sin 30^{\circ} $$
$$\Rightarrow\ \ \dfrac{1}{4 \pi \epsilon_0} \dfrac{q_1 q_2}{x^2} = \dfrac{mg}{2} $$ $$....(1)$$
$$\textbf{Step 3: Substituting the values } $$
Equation $$(1)$$
$$\Rightarrow \dfrac{9 \times 10^{9} \times 2 \times 10^{-6} C\times 2 \times 10^{-6}C}{x^2} = \dfrac{0.1\ kg \times 10m/s^2}{2} $$
$$\Rightarrow \dfrac{36 \times 10^{-3}}{x^2} = \dfrac{1}{2} $$
$$\Rightarrow x^2 = 72 \times 10^{-3}\ m $$
$$\Rightarrow x = 26.8 \times 10^{-2}\ m = 27\ cm$$
Hence, Option D is correct.