Question about Stock Market?

Is it legal for an enterprise and its subsidary to buy shares in the same company and then sell the subsidary owned shares to its enterprise?

I don’t understand what you mean?

I think I got it.

My company is A. I have a subsidiary B.

Both A & B buys stocks in Company X.

Can B now sell the stocks in company X to A?

(This could be a way to transfer money with holding/sub).

Yes, it can do, but only on the exact market price per share.