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.
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.