Match n nuts with n bolts