I have 5 different mathematics textbooks and 4 different psychology textbooks. In how many ways can I place the 9 textbooks on a bookshelf, in a row, if there must be a psychology textbook in the middle, and there must be a mathematics textbook at each end?