For every n AP classes that she passes, high school student Tess Taikkin receives c college credits. For every k college credits she earns, Tess can go on d dates instead of attending classes while enrolled in college. How many AP classes must Tess pass in high school to go on x dates instead of attending class while in college?