Option (C) is correct.
Explanation: First sort the books by the only thing R looks at — the page count.
- 120 pages: B1 and B3
- 95 pages: B2 and B4
Two books are related exactly when they land in the same group. So count the ordered pairs one group at a time. Inside the first group each of the 2 books is related to each of the 2 books, which gives 2×2=4 ordered pairs: (B1,B1), (B1,B3), (B3,B1), (B3,B3). The second group gives another 2×2=4. No pair crosses between the groups, because 120=95.
Total: 4+4=8 ordered pairs.
An equivalence class is a whole group of mutually related books, not a single book. There are two groups, so there are 2 classes.

Why the other options are tempting:
| Option | The mistake |
|---|
| (A) 8 and 4 | The pair count is right, but each book has been called a class. B1 and B3 are related, so they sit in the same class. |
| (B) 6 and 2 | Only the 4 pairs (Bi,Bi) plus (B1,B3) and (B2,B4) were counted. Symmetry also puts (B3,B1) and (B4,B2) into R. |
| (D) 16 and 1 | This is the universal relation A×A, which would mean "both are books in this library". But B1 has 120 pages and B2 has 95, so (B1,B2)∈/R. |