Students learn the benefits of taking AP and dual credit classes