This is a standard symmetry-constrained counting problem that has frequently appeared on other web homework sites. There are elegant and compact answers, but first you must develop counting skill at the ganglionic level, so to speak, in the dark.
Spin 1/2 particles are fermions, so their over-all wavefunction is antisymmetric (A). Their spin and space wavefunctions then must be A-S or S-A. Two spin 1/2 particles combine symmetrically to a spin triplet and anti symmetrically to a spin singlet.
The ground state is thus (000)(000)[$\uparrow\downarrow-\downarrow\uparrow$], S-A. Degeneracy $D=1$.
The first excited state has one of the two fermions in {(100),(010),(001)} and the other in the ground state (000). So you may have these 3 arrangements in either the S or the A form, to suitably match the spin (anti)symmetry. So match space S with spin A (singlet) and space A with spin S (triplet), hence $D=3\times (1+3)=12$.
The second excited state either has one fermion in the ground state and the other in {(200),(020),(002)}, combinatorially as above, contributing $d=12$, again; or else, one fermion in the ground state and the other in {(110),(101),(011)}, contributing another 12. Or else, both fermions are in first excited states: either {(100)(100), (010)(010), (001)(001)}, S, so the antisymmetrization must come for the spin wf, and hence a $d=3$ contribution. Or, finally, in {(100)(010), (100)(001), (001)(010)}, 3 combinations, which can be rewritten as either S or A, to match respective spin wavefunctions so as to achieve total A, so $d=3(1+3)$. Adding these up,
$D=3\times 4+3\times4+3+3\times 4=39$.
Analogously, for the two spin 1 bosons, where the combined wf has to be S, and recalling two spin 1s combine to a triplet (spin 1, A), a singlet (spin 0, S), and a quintet (spin 2, S), $\mathbf{3}\otimes\mathbf{3}=\mathbf{1}_s\oplus \mathbf{3}_a\oplus\mathbf{5}_s$, we find:
For the ground state, space S and spin S, hence $D=1+5=6$.
For the first excited space, as above, 3 space S and 3 space A, combined with spin S (1+5) and spin A (3), so that $D=3\times (1+5)+3\times 3=27$.
For the second excited state, {(200)(000), (020)(000), (002)(000)} as above, $d=3\times (1+5+3)=27$. Or {(110)(000), (101)(000), (011)(000)}, yielding another 27. Else {(100)(100) , (010)(010), (001)(001)}, S, so combined with spin S, contributing $d=3\times 6=18$. Else, finally,
{(100)(010), (100)(001), (001)(010)} 3 combinations, which can be made either S or A to match the corresponding S or A spin wf. Consequently, $d=3\times 9=27$. In total, $D=27+27+18+27=99$.
Having reassured yourself of the symmetry counting principle, you may find more compact and general formulas for the sequences 1,12,39,.... and 6,27,99 ...