Respuesta :

Bob will have 584 books left if he gave away 589.
589-5=584

So 584 is the answer