Suppose the book has x pages: Seven days ago, Xiao Jun read 7 × 2/3 = 14/3 pages, which was 14/3 div7 = 4/9 pages. Xiao Jun read (x + 5) × 4/5 = x + 20/3 pages in the last 5 days. Because Xiao Jun had read a total of 40 pages, there were: 4/9 + 20/3 = x The solution was x = 360/9 + 20/3 = 480/3 pages. Therefore, this book had a total of 480/3 pages.