Answer
$3h^2+6xh-2h$.
Work Step by Step
The given expression is
$=3(x+h)^2-2(x+h)+5-(3x^2-2x+5)$
Use $(a+b)^2=a^2+b^2+2ab$ for the first term.
$=3(x^2+h^2+2xh)-2(x+h)+5-(3x^2-2x+5)$
Clear the parentheses.
$=3x^2+3h^2+6xh-2x-2h+5-3x^2+2x-5$
Add like terms.
$=3h^2+6xh-2h$.