Redirecting 12v to either one output or another

Do you know how to drive the relay ?