Where did you get these two density figures? According to this, N3E only has an advertised density increase of 1.3x over N5:
Also, there seems to be an assumption that N3B is the cheaper node, but N3E sounds like it's the cheaper of the two, and maybe what the $18k figure is citing. Anton characterized N3E as:
"a relaxed version of N3B, eliminating some EUV layers and completely avoiding the usage of EUV double patterning. This makes it a bit cheaper to produce, and in some cases it widens the process window and yields, though it comes at the cost of some transistor density."
Another possible issue is whether you're comparing N5 pricing from the same level of maturity as N3E is currently. I think N5 was almost certainly newer in Q1 of 2020 than N3E is now. That's making N5 look more expensive than it should be, if what we want is an apples-to-apples comparison.