The easiest thing to do there is to just try them one at a time. Stick the bolt in and see how much is sticking out. It will be pretty obvious when you stick the short bolts in the deeper holes as they will not hit any threads. You should not have more than an inch or so sticking out once the bolt is inserted into the hole without threading it in yet.
Good Luck,
Billy