How do you factor 2x+6?

$2 \left(x + 3\right)$
You take $2$ out of both terms since they are both divisible by $2$, and you are left with
$2 \cdot x + 2 \cdot 3 = 2 \left(x + 3\right)$