As shown in the picture below, there is a thin infinite conducting grounded sheet in the plane $z=0$, a charge $q$ in $(0,0,d)$ and another charge $-q$ in $(0,0,-2d)$. I need to calculate the potential at the point $P$.
The charge in $(0,0,-2d)$ does not apply an electric field in the upper part, which I think means that I should only consider the charge in the upper part, and solve it by adding one image charge $-q$ in $(0,0,-d)$.
But again, since the plane is grounded, putting a negative charge and positive charge next to it, makes it get positive and negative charges from the earth, and it will then have a certain charge density $\sigma$. So I thought again of putting two image charges, $q$ in $(0,0,2d)$, and $-q$ in $(0,0,-d)$, if we calculate the potential at $z=0$, the boundary conditions are satisfied. Therefore the potential on the point $P$ will just be the sum of the potentials of the four charges.
I am really confused on whether I should consider the charge in $(0,0,-2d)$ or not. Any help would be very much appreciated.