Answer: the formula 2n2 :)
Explanation: To calculate the maximum number of electrons in each energy level, the formula 2n2 can be used, where n is the principal energy level (first quantum number). For example, energy level 1, 2(1)2 calculates to two possible electrons that will fit into the first energy level.
I hope it helped! :)