B takes two days off every four working days, that is, two days off every six days, 58÷6=9+4, that is, B takes a rest in these 58 days 18 days, and actually works for 40 days;
Now let's see how many complete cycles A and B have worked together (every six days is a cycle), during which A and B work and rest according to regulations.
1÷ (1/47+1/58) ÷ 6 = 4.32, which means they have to work together for four cycles, that is, 24 days. During these 24 days, A actually worked for 20 days and had a rest for 4 days, and B actually worked for 65438+.
The remaining workload after 24 days is:1-(1/40) χ 20-(1/40) χ16 =110.
The remaining workload is110. Both Party A and Party B work hard and finish 1/40 before rest every day.
It also needs:110 ÷ (1/40+1/40) = 2.
The total number of days required is: 24+2=26 days.