Next fit the cables into their appropriate cable stops/guides. The cables have been fitted at the factory so should just fit straight in. The rear derailleur is usually just bolted on using a 5mm Allen key taking care to hold it up far enough to not damage the ‘b tension screw’. Hint to get the cable outer into its stop, make sure the shift lever is all the way forward, then with your hand, push the rear derailleur into first gear (the largest sprocket) while putting the cable outer into its stop.
The front derailleur is similar but the cable has been removed. Put the outer into all the stops, lever forward and cable into the clamp where it has been pre-bent for easy installation (see fig. 10).