

Generally, the charges are of negligible mass. Hence, when we consider point charges, we do not consider the force mg acting in the downward direction. However, if they are objects with considerable mass, then we consider forces acting on the object both in the horizontal and vertical direction and resolve them separately.
Looking at the problem statement and the context, we can solve the problem accordingly.
