let the two charges be q1 and q2. given q1+q2 = 6 micro C, then q1 = 6 micro C - q2
F = 0.9 N ; distance r = 0.4m
by coloumb's law, F = (kq1q2)/(r xr)
0.9 = (9 x 10 power 9 x (6 x 10 power -6 - q2) x q2) / 0.4 0.4
0.36 =54000q2 - (q2x q2)
(q2 x q2) - 54000q2 + 0.36 = 0 (quadratic eq)
after using quadratic eq formula,
q2 = 54000 ( + or -) 53999/ 2
in + case q2 = 54000 + 53999/ 2 = 53999 (but point charge cannot have such a huge value)
in - case q2 = 54000 - 53999/2 = 1/2 ( which is possible)
therefore, q2 = 0.5 C
q1 = (6 x 10 power -6) - 0.5 = -0.49 C