The distance from the moon to the Earth is equal to 384,400 km, and the speed of light is equal to 300,000 km/s.
Knowing this, we can use the formula below to calculate the required time, where the total distance will be 2 times the distance from the moon to the Earth:
Therefore it takes 2.56 seconds.