Here,
T1 starts at TS =1
T2 starts at TS = 3
T3 starts at TS =7.
While giving the the TS for any read or write always look for youngest.
RTS(a) = a is first read by T1 hence RTS(a) =1. (Read(a) is never done anywhere again hence it is youngest)
WTS(a) = a is first written by T2 hence WTS(a) = 3. But again written by T3 which has higher TS (youngest) Hence final TS of W(a) = 7
RTS(b) = b is first read by T2 hence RTS(b) =3. (Read(b) is never done anywhere again hence it is youngest)
WTS(b) = b is first written by T2 hence WTS(b) = 3. But again written by T3 which has higher TS (youngest) Hence final TS of W(b) = 7
Hence answer is 1,7,3,7