One day has 24 hours. If Ravi sleeps for $$\displaystyle \frac{1}{3}$$ part of hours, studies and works for $$\displaystyle \frac{1}{2}$$ part of hours and plays for $$\displaystyle \frac{1}{6}$$ part of hours in the day, then how many hours does he spend in each of these activities?