Why did the discovery of thr rossetta stone help historians study hieroglyphics?

The Rosetta Stone had three different languages one of which was Greek, and another was hieroglyphs. Historians already knew Greek so they used it to sort of decode the hieroglyphics.