Answer:
3 μC, -1 μC or -3 μC, 1 μC
Step-by-step explanation:
As you can see in the image, let initial charges on two identical spheres be Q and q respectively (we are not considering the sign of q to be negative, value of q will be negative after solving)
initially,
…. (1)
where r = 0.5 meter (given in question),
after connecting a thin wire, both spheres tend to achieve the same potential conserving the total charge as initial, so after connecting a thin wire potential of both spheres become equal.
let q1 be the final charge on sphere 1 and q2 be the final charge on sphere 2,
... (2)
also, charge is conserved so total charge remains the same,
… (3)
if you solve equation 2 and 3, you will get the the final charges,

now after connecting the spheres the force equation becomes,
… (4)
divide the equation 2 by 4, after some simplification we get the below quadratic equation

divide the whole equation by
,

now this is a quadratic equation, after solving we get
(other solution also works, considering magnitude of charge on Q is more)
now substitute
in equation 2 and solve for q
q = 1 μC
Q = -3 μC
(you may consider Q = 3 μC and q = -1 μC)
Hopefully this answer will help you figure out the solution