Answer:
so when factorising, you first remove the common factors. in this case it is (x+3)
so what is remaining is the x and 4
you group that together.
my teacher explained that when factorising, after removing the common factor then you divide each term by the common factor, and then group the answers to that in brackets.
so it will be,

so basically whats left after dividing, is x and 4 because the x+3 cancel off.
and thats how you get the answer of
(x+3)(x+4)
hope this helps;)