James owns 7 different mathematics books and 4 different computer science books and wish to fill 5 positions on a shelf. If the first 3 positions are to be occupied by math books and the last 2 by computer science books, in how many ways can this be done?