Let us consider function as T= Acos(teta)+B, max and min values will occur when cos(teta) = +1 and -1;
so 30= -A+B;
70= A+B;
solving both B=50, A=20;
also at t=0 , cos(teta)= -1 and finishes one cycle after t=10hour;
so(teta) = pi+pi*t/10;
so, T= 20cos(pi+pi*t/10) + 50;