Denote by t the time we ned to paint a fence, by l the length of the fence and by n the number of painters. Then, we have the next equation
It takes 5 hours and 30 minutes, that is
to paint a l=150 feet fence with n=3 painters, then
So, if we have a l=510 feet fence and n=7 painters, then we will need
That is, approximately 8 hours.