A student scored 80% on a test. If the test had 50 questions worth one point each, how many questions did the student answer correctly?​