I don't get how to factor 5x+10 to get a factor of x+2
we have 5x+10.
we see that 5 is a common factor of 5x and 10, because 5 can divide 5x and 10.
so if we take out a 5 from 5x+10,
we get 5(x+2).
understand that to get back to 5x+10, we simply distribute 5 into the brackets.
CONCLUSION; so(x+2) is a factor of 5x+10 because if divides 5x+10 wholly(entirely, leaving no remainders).
implying (5x+10)/(x+2) = 5