Help with positioning an object to the closet object

Hello! I need help with positioning an object, lets call this object “Merchandise” to the closest 2nd object, let’s call the 2nd object “Table”. My main goal is to be able to click on the Merchandise and the Merchandise follows your mouse cursor and while it is following your cursor you could click on the table and it will position it to that table. But the problem is I want the merchandise to position its self to the closest table and I’ve been struggling with it.
I hope you can help me!

there is a “pick nearest object” condition. you can try that, but if the player have to click on the table, you can use the “cursor is on an object” condition. may be this is simpler.