Step 1: Understanding the Concept
The books of each subject form a block, giving three blocks.
Step 2: Arrange the Blocks
Three blocks can be arranged in \(3!=6\) ways.
Step 3: Arrange Within Blocks
English: \(2!=2\), Physics: \(3!=6\), Mathematics: \(4!=24\).
Step 4: Multiply
Total \(=6\times2\times6\times24=1728\), option (B).
Final Answer:
The number of ways is 1728.
\[ \boxed{\text{(B) }1728} \]