Dave buys 8 books + 6 books + 3 books = <<8+6+3=17>>17 books in total.
He has to spend 17 books × $6/book = $<<17*6=102>>102 if he wants to buy all the books.
#### 102