X and Y positions

I have a pretty simple question.

Say you have ClassA and Container A and you add a child to the Container A class. We will call it Class B. But you want Class B to be in the same position as Class A. How would you do that?