In a library, 9 of 10 different books are selected and arranged on a bookshelf. Find the number of arrangement if
1) the books with the smallest and the largest serial numbers among the 10 books are put on the left and right ends respectively.
2) the books with the smallest and the largest serial numbers among the 9 selected books are put on the left and right ends respectively.
Thank you very much.