The degeneracy of states for a particle in 3D box

I would like to see a step by step explanation of the problem attached, if possible.

Attachments