Stav dette: The formation of subdwarf B stars