 
 <prompt> Don Allah a samu littafi, ka biya $20 ga kowane littafi cikin 5 a kasuwa, kuma domin kowane littafi da ka samu a kan $20, za ka samu murabus $2. Idan Beatrice ta samu 20 littafi, shin ta biya a kasuwa? <response>: For the first five books, the total cost is $20*5 = $100
For every additional book over $5, you pay $2 less, totaling to $20-$2 = $18
Beatrice bought 20 books, so the number of books at which she received the $2 discount is 20-5 = 15 books.
For the 15 books, Beatrice paid 15*$18 = $270
In total, Beatrice paid $100+$270 = $370 for the 20 books.

The answer will be 370. 