Find raw pic with jpgs!

Hi Everyone!

Have headache with my issue. Struggling all afternoon in Automator.
I have a folder on my desktop.That when I put jpgs in it. I want it to open a specific folder that I choose and then finds the rawfiles with the same name. (Now with .arw in the end, not jpg) Then take that file and put it in a folder on my desktop called “Rawfolder”

Thanks for all the help I can get!

Need to have beer for my headache:)