which of the following is a way in which elements and compound are similar