Discover the methods for allocating earnings and profits to various distributions.