A student answered 80% of a 50-question test correctly. How many questions did they answer correctly?