Let r be the distance between q1 and q2.
According to Coulomb's law, the force between them is F=4πε01r2q1q2 =4πε01r2q1(q−q1) (∵q1+q2=q)
For F to be maximum dq1dF=0 ∴dq1d[4πε0r21(q1q−q12)]=0 ⇒q−2q1=0 ⇒qq1=21=0.5 [ As 4πε0r21=0]