The common goals between socialism and communism are that everything is distributed between people depending on what they do.
"Communism and socialism are economic and political structures that promote equality and seek to eliminate social classes."