Creating folders according to file names...

I’d like to create a workflow that takes close to 300 named files and creates folders and places them in their designated folder according to their name. for example. I have files 30_01_03, 30_02_01, 30_02_02, 29_01_02, 29_01_02, 29_02_03. I want it to then make a folder named “30” and have it take any file with the 30 as it’s first two numbers to be moved into it. then have it make a “29” folder and have it move all files starting with 29 into it. Get the idea?

If you could walk me through how to do this that would be great as i don’t have much experience with Apple Script.