Offset turret rotation

Hi

I know this will be an easy question for anyone with better math than me, but I’m really stuck!
I’m making a top down game - with spaceships! - I’m always pushing the boundaries :ducky:
The spaceship has a gun that turns, if a bullet was fired from the end of the gun, where would the bullet spawn?

Thanks