Final answer:
The total number of books in the library is 320.
Step-by-step explanation:
Since 1/8 of the books in the library are computer books and there are 40 computer books, we can find the total number of books in the library. Let's represent the total number of books as 'x'.
We can set up the equation: 1/8 * x = 40.
To solve for 'x', we can multiply both sides of the equation by 8: x = 40 * 8 = 320.
Therefore, there are 320 total books in the library.