Jeremiah read 3/8 of a storybook. In the next 6 days, he finished reading the book. During the 6 days, he read 65 pages each day. How many pages were there in the book?

5/8x = 65

x = 104

104 x 6 = 624

624 pages