We want to expand (a+b+5)2. We can think of this as (a+b+5)(a+b+5). We can use the multinomial theorem, or we can expand the expression by using the distributive property.
Method 1: Using the distributive property
(a+b+5)2=(a+b+5)(a+b+5) =a(a+b+5)+b(a+b+5)+5(a+b+5) =a2+ab+5a+ba+b2+5b+5a+5b+25 =a2+b2+ab+ba+5a+5a+5b+5b+25 =a2+b2+2ab+10a+10b+25 Method 2: Using the formula (x+y+z)2=x2+y2+z2+2xy+2xz+2yz Let x=a, y=b, and z=5. Then (a+b+5)2=a2+b2+52+2ab+2(a)(5)+2(b)(5) =a2+b2+25+2ab+10a+10b =a2+b2+2ab+10a+10b+25