In how many ways can the 7 Harry Potter books and the 5 Percy Jackson books be displayed on a bookshelf so that both the Harry Potter books and the Percy Jackson books are in order? One such ordering is shown below.
495
792
924
95040
3991680