Answer
$x=3$.
Work Step by Step
Our equation (because of the formula for the area of a triangle: $0.5base\cdot height$) is: $0.5(2x+8)(x+3)=(x+4)(x+3)=42\\x^2+7x+12=42\\x^2+7x-30=0\\(x+10)(x-3)=0$
Thus $x=3$ or $x=-10$, but $x$ has to be positive, thus $x=3$.