Easiest Way To Solve This?

I have 34 movieclips which are all dragable… they can be dragged to any of 5 different targets… but i need a way so that if there is a movieclip already in one of the targets then it’ll return to it’s original place and the new one will now be in the target

so movieclip A is in the target… but movieclip B is now dragged onto the target… so movieclip A now returns to it’s original spot…

i can make them return… to their original spot if they aren’t inside a target… but i don’t know how to make it return if another movieclip takes it’s place…

thank you