24. Each of the numbers $1,2,3,4,5,6$ is to be placed in the cells of a $2 \times 3$ table, with one number in each cell. In how many ways can this be done so that in each row and in each column the sum of the numbers is divisible by 3 ?
A 36
B 42
C 45
D 48
E another number