The ratio number of pictures to hours is given by
then, we can write
where t is the time in hours and y is the number of pictures. Now, we know he painted y=6 pictures. then, by substituting this values into our equation, we have
By multiplying both sides by 8, we get
Then, the answer is 48 hours.