Purchase shareholding in joint venture from a joint venture

Hi all My company has a 50% shareholding in a joint venture company, A. A has a wholly owned subsidiary (B) and is going to transfer its interest in this subsidiary to its shareholders (i.e. 50% to my company and 50% to the other joint venturer). How shall my company account for such purchase of [...]