
The red dot with speed is the immobile objects bullet, which it shoots!
So the primary question is "At this moment where does the immobile unit shoot so that the bullet would collide with the moving object?"(Or otherwise at what direction the immobile unit needs to shoot for the bullet to collide?) As I understand there is no formula for this! Feel free to modify the image.
Edit: Timing doesn't matter!