Can someone please translate this Spanish sentence into English?

I've been doing my Spanish homework all day, but there's this one question I'm stumped on: ¿Adónde vas cuando sales de la escuela? I'm thinking that it means something along the lines of "To where are you going to when _______ of the school?", but the 'sales' threw me off. I read that it means 'to leave'... show more I've been doing my Spanish homework all day, but there's this one question I'm stumped on:

¿Adónde vas cuando sales de la escuela?

I'm thinking that it means something along the lines of "To where are you going to when _______ of the school?", but the 'sales' threw me off. I read that it means 'to leave' (salir), but why would it be conjugated if the first verb is already conjugated (ir --> vas)? So I'm not sure what this sentence translates to in English.... Help!!
12 answers 12