Answer
$5$
Work Step by Step
Given values are
Number of painters $p_1=3$.
Number of motel rooms $m_1=12$.
Number of painters $p_2$.
Number of motel rooms $m_2=20$.
Ratio is same.
$\frac{p_1}{m_1}=\frac{p_2}{m_2}$
Substitute all the values.
$\Rightarrow \frac{3}{12}=\frac{p_2}{20}$
Simplify.
$\Rightarrow (20)\frac{3}{12}=p_2$
$\Rightarrow 5=p_2$.