Light spreads over the surface of a sphere. How the brightness depends on the distance follows from how that surface grows. Use this to work out what a change in brightness means for a change in distance.
Two identical Cepheids are in different galaxies. The first looks 36 times fainter than the second. How many times further away is the first galaxy?