If a road used to carry 1000-cars per hour, it will only carry 500-cars per hour if you drop the speed limit from 35 -> 18. Effectively doubling the length of time for congestion.
You can get around this by building twice as many roads I guess, but cities don't really have any more room.
Also, the constraint on street capacity is intersections in the vast majority of cases. Until you remove intersections nothing else really else matters.
If you instead assume 1-car lengths worth of distance at both 36mph and 18mph, the road capacity shrinks dramatically between the two speeds.
Finally, you get vastly different places at 40 mph vs 20mph. At 20, roads are smaller, people can safely exist close to the roadway and even enjoy themselves, and you don't need huge buffer zones for the safety of drivers or people. All these things compound to put people (willingly) in closer proximity to one another, so that, while peak travel speed is lower, traffic throughput stays relatively consistent, and travel times decrease overall because many long trips get replaced with short ones.
a better solution is narrowing lanes (to 9-10 ft), and possibly installing bollards everywhere, because that internalizes the costs of collision (car gets wrecked and you get hurt in addition to pedestrians), so drivers naturally self-regulate driving behavior for safety (rather than the secondary measure, speed). you also don't need an external police force and it's attendant costs, both financially and societally, for enforcement.
1: https://nacto.org/docs/usdg/relationship_between_speed_risk_...