Potentiometer regulating motor...noot easy

the max motor speed, 255, is "mapped" to 9000. what about using the pot value to set the value corresponding to 9000?