If you are driving 30 mph and throw a ball out the window with a speed that from your point of view is going 10 mph faster than your car a stationary observer would see the ball going 40 mph, the 30 mph of the car plus the 10 mph of your throw.
Now let's change the car into a rocket going 1/2...