Let w1,w2,w3,w4 are four works.
w1 has n1,n2,n3 as volumes.
w2 has m1,m2,m3 as volumes.
w3 has a1,a2 as volumes.
w4 has b1,b2 as volumes.
Now, firstly we have to arrange these 4 works.
This can be done in 4! ways.
Now, we have to separately arrange volumes of these 4 works.
Volumes of w1 can be arranged in 3! ways.
Volumes of w2 can be arranged in 3! ways.
Volumes of w3 can be arranged in 2! ways.
Volumes of w4 can be arrnaged in 2! ways.
Therefore,
Total number of ways = 4!×3!×3!×2!×2!=3456