for T2 --> T1
1- First of all execute R(Y)W(Y) of second transaction. Find total transactions possible for remaining operations. (15)
2. Execute R(Y)W(Y) of first transaction at the last and find total transaction for remaining operations. (15)
3. Now couple first two operations of both transaction and find total no. of possible transaction.(6) Do same for
last two operations. Multiply both(36 total). Now remove the transaction which are repeated or already occurred
in 1 and 2. (1+6+6)
total = 15+15+36-6-6-1 = 53
for T1 --> T2
only 1 possible.
total = 53+1 = 54 ans.