Have you ever seen a giant magnet? It's like a super strong magnet that can pull things towards it from far away. Well, scientists use a similar type of magnet in a machine called a nuclear magnetic resonance spectroscopy machine.
Inside the machine, there are tiny particles called atoms. Every atom has a nucleus, which is like the brain of the atom. When the machine turns on, the giant magnet starts to pull on the atoms in a certain way. The way the atoms move in response to the magnet is called their "resonance."
Scientists can use this resonance to figure out what types of atoms are in a sample. This is like playing a "matching game" with different atoms. They also use the machine to study how different atoms are arranged in molecules and what chemical reactions are happening between them.
It's like having a really strong microscope that can see inside tiny things and tell you what they're made of!