These instructions should help solve shifting issues. Most new bikes come with straight rear derailleur hangers, a properly adjusted b screw, and properly set H & L screws. Hence, new bike owners only need to examine Step #4, however we include each step in order for completeness.
Step #1 Make sure the rear derailleur hanger is straight
Step #2 Adjust the b screw
Step #3 Adjust the H & L screws
Step #4 Adjust the cable tension via barrel adjuster