The ans gvn by sboosy is rt, but his sample space is incomplete!!
so just for a more rigorous treatment of the qn
Assume we start observation at t=0
Choose your time interval along y axis, any arbitary time interval of length l.
we can observe signal change at green 2 yellow and at yellow to red
Any way length of time interval is fixed and 3 seconds, say we choose the time x.
We can see the change at green to yellow if x>27 and x<30
so this represents area l*3 a rectangle
now we can see the other color change if x>30 and and x<33
this again represents area l*3 a rectangle
so total favorable sample space is 6*l where u choose length of time of observation.
And total sample space is 63*l
so probability is 6l/63l=
2/21
This is assuming u choose length of time interval includes all 3 possibilities and is an integral multiple of 3.