If you are trying to put a rear rack on a front fork, can't help.
If your rack is a front rack that is designed to use the eyelets instead of skewer, it is quite simple. Get some long M5 bolts, lots of washers and some Nylock nuts. Put the bolt in from the outside, thru the rack, several extra washers or a bushing or spacer if you need more room, then put the bolt in the fender eyelet, then put the fender mount on the bolt and attach with a nylock nut. That way your rack is outside the fork dropouts, your fender uses the same eyelets on the inside.
Unfortunately my photo was cropped from a much bigger one so it is not easy to see with poor resolution.
The photo is a LHT with Tubus Ergo Rack, the upper eyelets on the dropouts are not used, both rack and fender use the fender eyelets with long bolts and nylock nuts. I think I have spacers between the rack and fender that are about a quarter inch long.