Unless you know how and just prefer the solid thingy for making things connect (idk how to describe it like one thing above the other below) here's the rule
Step one: give one item a tag
Step two: go to rules and use when this is created, then repeat every 0.0167 seconds, modify a property, layout x, value of a behavior property, layout x, then the actor thing make that the closest actor with a tag, then use that tag, then repeat but with layout y. Hope this isn't confusing!