Evaluating the product of two binomials using FOIL:
Sum
color(white)("XXXX")XXXXproduct of First terms
color(white)("XXXX")XXXXproduct of Outside terms
color(white)("XXXX")XXXXproduct of Inside terms
color(white)("XXXX")XXXXproduct of Last terms
For the given example: 2(x+2)(x+5)2(x+2)(x+5):
We can apply FOIL to (x+2)(x+5)(x+2)(x+5) as
color(white)("XXXX")XXXXFirst terms: x, xx,xcolor(white)("XXXX")XXXXProduct = x^2=x2
color(white)("XXXX")XXXXOutside terms: x, +5x,+5color(white)("XXXX")XXXXProduct = +5x=+5x
color(white)("XXXX")XXXXInside terms: +2, x+2,xcolor(white)("XXXX")XXXXProduct = +2x=+2x
color(white)("XXXX")XXXXLast terms: +2, +5+2,+5color(white)("XXXX")XXXXProduct = +10=+10
Sum
color(white)("XXXX")XXXX= x^2+5x+2x+10=x2+5x+2x+10
color(white)("XXXX")XXXX= x^2+7x+10=x2+7x+10
So
color(white)("XXXX")XXXX(x+2)(x+5) = x^2+7x+10(x+2)(x+5)=x2+7x+10
and
color(white)("XXXX")XXXX2(x+2)(x+7) = 2x^2+14x+202(x+2)(x+7)=2x2+14x+20