Sale of subsidiary

Company ABC and Company DEF both own Company XYZ (50%0 each). Company XYZ in turn owns subsidiary GHI (100%) and subsidiary XYZ (100%). Company ABC sells it s share in Company XYZ to Company DEF for a consideration of $1 and in turn buys 100% share of subsidiary GHI for $100,000. How do I account for sale of subsidiary GHI in [...]