The first one is the sum of two cubes. Remember the factoring for the sum of two cubes?.
Now, use the formula.
For the second one. You can factor out 4x:
Now, factor the quadratic. What two numbers when multiplied equal -630 (because (-35)(18) = -630) and when added equal -27.
Hmmmm, let's see......how about -42 and 15.
Factor out 3x in the first one and -7 out of the second:
Don't forget the 4x we factored out in the beginning.
See how it's done now?.
Oh yeah, BTW, there is a way to remember the two different factorings for the cubes.
Note the signs in the factoring on the right side of the equals sign.
Then the first sign is the Same, then Opposite, then the last one is Always Positive. See what I mean?.