Dear Student,
Let the charges Q and Q be placed at a distance r from each other
To be in equilibrium force between charges Q and Q should be equal to charge Q and q
Thus force between Q and Q will be
Force between q and Q will be
By condition of equilibrium,
F1 + F2 = 0
Thus for equilibrium of the system q = -Q/4.
Regards,