<human>:  Louie obtained 80% on a math quiz. He had 5 mistakes. How many items were there on the math quiz?
<bot>: How many items were there on the math quiz? ** Louie got 100% - 80% = 20% of the total items incorrect, which is equal to 5 items.
How many items were there on the math quiz? ** So 1% is equal to 5/20 = 1/4 of an item.
How many items were there on the math quiz? ** Hence, the total number of items, represented by 100%, on the math quiz was 1/4 of an item x 100 = <<1/4*100=25>>25.
#### 25