Solving a tradable permits problem albegraically