Hey guys, I just don’t understand how did the first 2 equations turn to be the last 2 equations like where did we substitute max i dont understand how nor where Ány help will be appreciated thank you!!

Hope this helps!