How Do Scientists Measure Cosmic Distances