guys can someone explain both my friend gave me the answer for the 1st one but i dont understand both of them pls help!

guys can someone explain both my friend gave me the answer for the 1st one but i dont understand both of them pls help class=
Q&A Education