I'd go one step farther and make note that 36 and 40 pins are the standard bulk lengths. In many cases, if you order 18 pin headers they will be cut from 36 or 40 pin strips.
I would buy 36 pin lengths and break or cut them in half. No special tools required. Use a pair of pliers to break each strip in half to get two 18 pin strips. Could make a pretty simple jig if you have a lot of them.
But yeah, as has been stated, you can stuff a 10 pin next to an 8 pin, though if they were cut from longer strips then there might be a burr that needs to be removed. There is the additional challenge that the two strips won't line up perfectly without some kind of fixturing. The idea is that any strip is likely to be leaning slightly one way or the other. Snug fitting holes in the PCB will help, but the tips of the two separate strips might be slightly misaligned if they're not held in position while soldering. This could make it difficult to slide on a single 18 pin female connector. Obviously, a single continuous strip will not have that problem.