Answer:
First, you need to name the first element. You can look it up on the Periodic Table of Elements. Then name the second element by using its root + suffix. (Note: -ide is most often used.)
For example: NaCl
Na is Sodium
Cl Chlorine
But since it is Cl second element it should be chloride.
Answer: Sodium chloride
(Note: sometimes you need to add prefixes)
CO2-- Carbon dioxide. If you are wondering why it shouldn't be just oxide, it is because the subscript is two, which means the oxygen has 2 atoms. That's why we used prefix di-. A Greek prefix which means two. (You can look up the different greek prefixes on the Internet if you want.
-For acids that contain Hydrogen hydro + the suffix -ic is attached to the root then add acid in the end.
Example: HCI- Hydrochloric acid
H2SO4- Sulfuric acid
NOTE: The First letter in the first element should be capitalized. While the first letter in the second element should be small.