Logan read a total of 54 pages of the geology and math textbooks. They read 39 pages in the geology textbook. How many pages did Logan read in the math textbook?​