copy objects world position

if i want to copy an object world position i do: object_1.worldPosition = object_2.worldPosition

but how i can copy the y position only from an object and the x position from another object? something like:

object_1 y Position = object_2 y Position

object_1 x Position = object_3 x Position

thank you for any help

Something like this will work fine.

object_1.worldPosition.y = object_2.worldPosition.y
object_1.worldPosition.x = object_3.worldPosition.x

thank you very much