Think of your bicycle as having 3 gear ranges: One for uphill, one for level roads, and one for downhill. Your front chainrings correspond to those three ranges.
Within each gear range you can adjust how hard you have to pedal by shifting the rear gears.