By keeping the two spheres in contact and bringing a charged rod near one of the spheres, equal and opposite charges will be induced on two spheres as shown in Fig.

By keeping the rod in position, remove the sphere on the RHS by insulating stand to some distance apart Fig. (b).
Next, remove the glass rod. Now the two spheres will carry equal and opposite charge. The charge on the two spheres will be equal irrespective of their sizes.