Answer
$w=\frac{1}{5}$.
Work Step by Step
The given equation is
$\Rightarrow 5=7w+8w+2$
Add like terms.
$\Rightarrow 5=15w+2$
Subtract $2$ from both sides.
$\Rightarrow 5-2=15w+2-2$
Simplify.
$\Rightarrow 3=15w$
Divide both sides by $15$.
$\Rightarrow \frac{3}{15}=\frac{15w}{15}$
Simplify.
$\Rightarrow \frac{1}{5}=w$.
Check:-
$\Rightarrow 5=7w+8w+2$
$\Rightarrow 5=15w+2$
$\Rightarrow 5=15(\frac{1}{5})+2$
$\Rightarrow 5=3+2$
$\Rightarrow 5=5$
True.
Hence, the solution is $w=\frac{1}{5}$.