Tony decided that he would read 40 pages of a book per day. Unfortunately, he managed to read 30 pages per day only, so it took him 3 days more than planned to read the whole book. For how many days Tony was reading the book? How many pages were in that book?