To determine the distance to a galaxy, you would need its name and information about its redshift (which is related to how far away it is).
If you're interested in learning about real galaxies and their distances, let me know! I can tell you about some fascinating ones and how we measure their distances.