Communism and socialism are political and economic systems that are historically related but often confused with each other. Here’s how they compare.