Ответ:

Найдём \(\frac{5}{8}\) от 40 книг:

\[40 \cdot \frac{5}{8}=5\cdot 5=25\text{ книг}\]

Ответ: 25 книг.