Let x be the number of days each group has painted and let y be the number of km each has painted.
We know that the first group already painted 3 km and that each day the paint 3 km, this means that the total km they have painted is:
[tex]y=3x+3[/tex]We also knoe that the second group already painted 5 km and that the paint 1 km each day, then the total can be express as:
[tex]y=x+5[/tex]Hence we have the system of equations:
[tex]\begin{gathered} y=3x+3 \\ y=x+5 \end{gathered}[/tex]To solve it we substitute the value of y of the first equation into the second equation, then we have:
[tex]\begin{gathered} 3x+3=x+5 \\ 3x-x=5-3 \\ 2x=2 \\ x=\frac{2}{2} \\ x=1 \end{gathered}[/tex]Plugging the value of x in the first equation we have that:
[tex]\begin{gathered} y=3(1)+3 \\ y=3+3 \\ y=6 \end{gathered}[/tex]Therefore:
Each group have painted 6 km.
It takes one day for the groups to pain the same amount.