The voltage divider formula is:
Vout = Vin * (R2 / (R1 + R2))
Example 1: For Vin = 12V, R1 = 1000Ω, R2 = 2000Ω, Vout = 8V.
Example 2: For Vin = 9V, R1 = 1500Ω, R2 = 3000Ω, Vout = 6V.
Example 3: For Vin = 24V, R1 = 500Ω, R2 = 1000Ω, Vout = 16V.