can someone please check

n^2 + 13n + 42
(n+7) (n+6)

I need help with this one
r^2 - 16r +64

The first one is correct

r^2 - 16r +64

looking at the +64 and the -16, I am looking for two numbers with the same sign
that will multiply to give me 64 and have a sum of -16 ,
the -16 also tells me that both numbers are negative

2 numbers -- sum
-1 -64 -65
-2 -32 -34
-4 -16 -20
-8 -8 -16 <----- got it

(x - 8)(x - 8) or (x - 8)^2

To factor the expression r^2 - 16r + 64, we can use the factoring method.

1. Look at the coefficients of the expression: 1, -16, and 64.
2. Find two numbers that multiply to give you 64 and add to give you -16. In this case, those numbers are -8 (which is the square root of 64) and -8.
3. Rewrite the middle term -16r as -8r - 8r.
4. Split the -16r term into two terms: -8r and -8r.
5. Group the terms:
r^2 - 8r - 8r + 64
6. Factor by grouping:
(r^2 - 8r) (-8r + 64)
7. Factor out the greatest common factor from each pair of terms:
r(r - 8) - 8(r - 8)
8. Notice that we have a common factor of (r - 8) in both terms.
9. Factor out (r - 8) from each term:
(r - 8)(r - 8) or (r - 8)^2

Therefore, the expression r^2 - 16r + 64 factors to (r - 8)(r - 8) or (r - 8)^2.