(a) The charges acquired by the two objects are opposite in nature but are the same in magnitude.
(b) While rubbing, some of the negatively charged particles move from one object to another object. Due to that one object is left with an excess of negatively charged particles and another with an excess of positively charged particles. That's why both the objects acquire charge.