Math Help Factoring Trinomials

Question: How do you factor trinomials? (MATH)?
I just found out that I’m having a midterm tomorrow and it’s not mulitply choice which really sucks cuz that could’ve helped me passed
for example, how do you factor this:
x^2+9x+8
please explain in detials and please make it simple cuz i’m really stupid when it comes to algebra!!!!!
Yeah not helping.
Answer: you have to go with trial and errors
first factor out 8 = 1+8, 2+4
then if the sign is +, you add the two factors until you find one that match the coeff of x.
in this case, 8+1 = 9, so
(x+8)(x+1)
if the eq was x^2 – 6x + 8 then 2+4 = 6
(x – 2)(x – 4)
if the sign is negative, then you subtracts 1-8=-7
like x^2 – 7x – 8 = (x-8)(x+1)
Math Fractions & Equations : How to Factor Polynomials by Grouping