set object2 xPos to be equal to object1 xPos?

I want to set object_2 Xpos to be equal to object_1 Xpos, so that when i move object_1 on x,y,z axis, object_2 to move only on x axis and to follow x axis of object_1.
How to do that?

I dont know english very good so i made you a blend file. If you need any help PM me


Copy X Pos.blend (134 KB)

Hey, thanks alot man, that will do the trick!