Five pedestrians walk a certain distance in 35 minutes. The next day, seven pedestrians walk the same distance with the same speed. How long does it take for them?