Power Air Gap & Rotor Copper Losses

Hi Everyone,

I’m looking for help with this problem below:

I see that the solution uses the equation shown here:

But I am wondering how we got that equation?

In the reference handbook, I had tried using this equation:

The rest of the correct solution is below.
I did the calculations for everything correctly, up until finding Air-Gap Power, because I used the wrong equation. Is there a way to differentiate when to use which formula?