RA( );
for  i = 1 to   do
 first = RA( );
 second = RA( );
 pay = first-second
end for
Algorithm 3: TRA.