W-spin and B-spin subgroups of SU(12)