Jasmine wants to organize her books in order of most number of pages to least number of pages. Jasmines longest book has 396 pages and her shortest book has 1/4 as many pages as the longest. If the book in the middle of her shelf has three times the number of pages of the shortest book then how many pages does the middle book have