I'm having trouble understanding how to factor this equation. Let's go step by step:
First I use the sum/product pattern: $$3x^2−2x−21x+14=0$$
Then I take the common factors: $$x(3x−2)−7(3x−2)=0$$
From this I should obtain: $$(x−7)(3x−2)=0$$
But I do not understand the logic that takes me from point 2) to point 3). What happened?
It is a step justified by distributive property
$$A(B+C) \iff AB+AC$$
in this case we have $A=3x-2$, that is
$$(3x−2)\cdot (x−7) =(3x−2)\cdot x+(3x−2)\cdot (-7)$$
See also the related