Factor.

x^2 - 3x - 4

To factor the expression x^2 - 3x - 4, we need to find two numbers that add up to -3 when multiplied together and add up to -4 when multiplied together. These numbers are -4 and 1.

So, we can write the expression as (x - 4)(x + 1).

x^2 + 4x - 12

To factor the expression x^2 + 4x - 12, we need to find two numbers that add up to 4 when multiplied together and multiply to -12. These numbers are 6 and -2.

So, we can write the expression as (x + 6)(x - 2).