PLace two resistors in series with the 2nd resistor value (5/7) of the first resistor value. Place the resistors between 12v and ground and then you will get 5v at the point between them. This is a very crude way of doing it. It is unregulated so the voltage out will be dependent of voltage in.