Here's the maths:
Let the distance to the space telescope be D miles. Then the outbound time, in hours, T1 = D/3000
Similarly, the return time T2 = D/1000.
The overall average speed is the total distance travelled (2 x D), divided by (T1 + T2)
i.e Average speed = (2 x D) / (D/3000 + D/1000)
A fraction remains unchanged in value if we multiply or divide the top and bottom terms by the same amount. So we can get rid of D by dividing top and bottom of that fraction by it.
We've now got Average speed = 2 / (1/3000 + 1/1000)
In order to carry out the addition in that equation we must make both the numerators the same, giving
Average speed = 2 / (1/3000 + 3/3000) = 2 / (4/3000)
Remembering that dividing by a fraction is accomplished by 'turning upside down and multiplying', gives us
Average speed = (2 x 3000) / 4 = 6000/4 = 1500 mph
Chris