It's just as hard in the real world: https://ftw.usatoday.com/lists/nc-state-texas-ncaa-portland-...
Here's my real world example that seemed to break everyone's brain...I had a room in a house that I wanted two ceiling fans installed in, in a line, with even spacing between the fans themselves and between the fans and the walls at each end. Everyone I called over to do said work said easy peasy, measure wall to wall, divide by 3, done and done. I tried to explain this centers the bases, but then the fans will be cl…
Naively, you move each fan a half foot closer to the wall. This makes the gap 1.5 feet to the wall but now 2 feet between each other. (You might find ways to argue that this looks better visually than the true answer below, and that depends on a lot of perception-altering factors including how low the fan hangs from the ceiling, amount/ratio of space available, the distance from the non-perpendicular walls, and light sources as they might cast shadows with different sized gaps on the ceiling.)
You need to take the total room length and subtract the fan diameters, then divide that by 3. (So, 5 / 3 = 1.667 or 1'8" from wall to blade tip.) Thus, each base should be 2.667 feet from its nearest wall. This makes a gap 1'8" between each blade tip:
20" space, 24" blades, 20" space, 24" blades, 20" space = 108" (9 ft) room length
Bringing this around to the theme of web design, this is akin to space-between, space-around, and space-evenly in justify-content[1] (except there isn't a "space the center of each element evenly" selection, except maybe stretch or nesting everything in another flexbox)
[1] https://css-tricks.com/snippets/css/a-guide-to-flexbox/#aa-j...