According to the Coulomb's electrostatic force(F) of attraction or repulsion between two charges is directly proportional to product of charges.
So F∝q1q2
The one of the charges should be negative.
a) IN the first case q1=−3Q and q2=5Q
Now F1α(3Q)(5Q)
And in the second case when the two charges are touch each other then the common charge on each sphere is
q=(−3Q+5Q)/2=Q
Then F2α(Q)(Q)
F1F2=(3Q)(5Q)(Q)(Q)
Then
=1/15
Now F2=(1/15)F1
=(1/15)(10N)=2/3N
b)
The nature of force is repulsive