We have 24 teams (a-x) competing in 8 different activities over 8 time periods.  The difficulty is that there are 3 teams per activity. I'm trying to get some rotation through the activities so the same teams aren't playing each other all day.  Any help/solutions would be appreciated. 
                Activity 1     Activity 2     Activity 3     Activity 4     Activity 5     Activity 6     Activity 7     Activity 8
Time 1       a,b,c           d,e,f            g,h,i            j,k,l             m,n,o          p,q,r           s,t,u             v,w,x
Time 2
Time 3
Time 4
Time 5
Time 6
Time 7
Time 8