At a college library exhibition of faculty publications, two mathematics books, two social science books, and two biology books will be displayed on a shelf. (Assume that none of the books are alike.)
In how many ways can the six books be arranged on the shelf if books on the same subject matter are placed together?