Where to get a gear box to rake and balel with


As the title states i need help to convert a rake to where i can rake and bale with at the same time. iv seen it done but i cant find a gearbox or anything to do this. can anyone point me in the right direction?