example is (x+y)(x+y) used the FOIL METHOD,first u solve is the first of the parenthesis (x)(x) u multiply=x²,second is the outside of the parenthesis(x)(y)=xy,third is the inner of the parenthesis(x)(y)=xy,fourth is u multiply the last of the parenthesis=y²
the answer is x²+xy+xy+y² u add the xy+xy is 2xy and the total answer is x²+2xy+y²