1. - <img src="https://tex.z-dn.net/?f=%202x%5E%7B2%7D%20%2Bx%2B4x%2B2%0A%0A" />
nos dice claramente factor comun .
Y mas abajo nos dice por agrupacion .
En esto nos refiere lo siguiente
<img src="https://tex.z-dn.net/?f=%28%202x%5E%7B2%7D%2Bx%29%2B%284x%2B2%29%20" /> .
Y se saca factor comun de cada agrupacion
<img src="https://tex.z-dn.net/?f=x%282x%2B1%29%2B2%282x%2B1%29" /> .
Teniendo esto ya se puede agrupar ya q tenemos terminos semejantes
<img src="https://tex.z-dn.net/?f=%28x%2B2%29%282x%2B1%29" />
2.
- <img src="https://tex.z-dn.net/?f=%2012a%5E%7B2%7D%20-8a-3a%2B2%0A%20" />
<img src="https://tex.z-dn.net/?f=%28%2012a%5E%7B2%7D-3a%29%2B%28-8a%2B2%29%20%0A" />
<img src="https://tex.z-dn.net/?f=3a%284a-1%29-2%284a-1%29%0A" />
<img src="https://tex.z-dn.net/?f=%283a-2%29%284a-1%29" />
espero que te sirva : ).