On the first day, Xiaofang read the book's 51 pages, and the remaining pages were $51/div2 = 25$. The next day, he read another 10 pages and the remaining pages were $25 + 10 =$35. At this point, the ratio of pages seen to pages not seen is 2:3, which can be expressed as $25:35=2:3$. Therefore, Xiaofang had read the book for $2+3=5$days and still had $35-5=28$pages left.