If you had just described your project more in the first place, we'd be getting there faster. Is there any more information you're holding back?
In this case: figure out the values you get for dark and light, them map those to 0-180 (look at the map() function), and feed that result to your servo.