va rog ,e urgent !!!

Am atașat rezolvarea în imagine, sper să înțelegi.