Why are charges formed on ebony and wool when they come into contact, which are equal in magnitude and opposite in sign?

Electrons from wool are transferred to ebonite.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.