More formal way of saying "taking almost all"

Solution 1:

A takes the lion's share.

In English the phrase used in the sense of nearly all only appeared at the end of the 18th century;[2]

https://en.wikipedia.org/wiki/Lion%27s_share