Some good reading here for the basics of installing gears:
Randy's Ring & Pinion - Installation Instructions
Both the front and rear gears need to match each other as close as possible. Example: 3.55 rear gear/3.54 front gear. Quite common in the older trucks.