GC-MS combines gas chromatography and mass spectrometry to separate and identify compounds in a sample. It works by vaporizing the sample, separating the compounds via gas chromatography, and then using mass spectrometry to determine the mass-to-charge ratios which can be used to identify the compounds. LC-MS is similar but uses liquid chromatography instead of gas chromatography to first separate compounds based on their polarity before entering the mass spectrometer. Both techniques are highly sensitive and useful for applications like drug detection, environmental analysis, and metabolomics. Hyphenated techniques provide the advantages of both separation and identification capabilities in a single analysis.