You can't solve it it by placing the wizards spell in that letter order related to the number in the book, because the spell is already mixed up. What you do is is take the wizards spell and assume are the base order from 1-9 consecutive, then rearrange that into the number sequence from the counterspell book.