Step-by-step explanation:
Let [tex]w[/tex] be the work to paint the house.
Let [tex]t_{a}[/tex] be the time taken by person A to do [tex]w[/tex].
Let [tex]t_{b}[/tex] be the time taken by person B to do [tex]w[/tex].
Let [tex]speed_{a}[/tex] be the speed of person A to paint.
Let [tex]speed_{a}[/tex] be the speed of person B to paint.
It is given that person A can paint 2 times as fast as person B.
[tex]speed_{a}=2\times speed_{b}[/tex]
So,person B would take twice time as taken by person A.
[tex]t_{b} =2\times t_{a}[/tex]
[tex]t_{a}=\frac{w}{speed_{a}}[/tex]
[tex]t_{b}=\frac{w}{speed_{b}}[/tex]
It is given that both of them would take 4 days to paint the house.
[tex]\frac{w}{speed_{a}+speed_{b}}=\frac{w}{\frac{w}{t_{a}}+\frac{w}{t_{b}}} =\frac{t_{a}\times t_{b}}{t_{a}+t_{b}}[/tex]
substituting [tex]t_{b}=2\times t_{a}[/tex]
Total time to produce=[tex]\frac{t_{a}\times t_{b}}{t_{a}+t_{b}}=\frac{2\times t_{a}^{2}}{3\times t_{a}} =\frac{2\times t_{a}}{3}=4[/tex]
[tex]t_{a}=6[/tex]
[tex]t_{b}=2\times t_{a}=2\times 6=12[/tex]