Think of the expansion of the universe as an inflating balloon. As a balloon is inflated, it expands in all directions. The universe also expands in all directions.
Using some geometry, can you understand how scientists might be able to use data to determine the distance between stars? What measurements are needed?