We'll use a compound rule of three to solve your problem:
3 gangs 20km 10 days
x gangs 50 km 15 days
Gangs are directly proportional to the surface and indirectly proportional to the number of days:
![\begin{gathered} (3)/(x)=(20)/(50)\cdot(15)/(10) \\ (3)/(x)=(300)/(500) \\ (3)/(x)=(3)/(5) \\ 3x=15 \\ x=5 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/r5n4p69nbva9g8i5g7eaog66lqzahcbwtl.png)
So, it's needed 5 gangs to complete the work, in total.