A chemist is using three types of atom to build a molecule, including carbon, oxygen, and hydrogen. He has 164 atoms. The number of carbon atoms is three times as many as oxygen atoms, and the number of hydrogen atoms is 10 more than the number of carbon atoms. How many of each type of atom do they have?