The correct option is B 5g, 6f, 7d
Energy can be calculated by using the formula: n+l , where n is principal quantum number and l is azimuthal quantum number.
(n+l):8s→8+0=8
8p→8+1=9
5g→5+4=9
6f→6+3=9
7d→7+2=9
6h→6+5=11
For same values of n+l, orbital with lower value of n will have lower energy.
Hence,
Correct order →8s 5g 6f 7d 8p