Susan's time was 30 seconds + 10 seconds = <<30+10=40>>40 seconds.

Mary's time was 40 seconds * 2 = <<40*2=80>>80 seconds.

Tiffany's time was 80 seconds - 7 seconds = <<80-7=73>>73 seconds.

The total time for the team was 80 seconds + 40 seconds + 30 seconds + 73 seconds = <<80+40+30+73=223>>223 seconds.

# Answer

223
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
4 friends are running a 4 x 100 relay race.  Mary ran first and took twice as long as Susan.  Susan ran second and she took 10 seconds longer than Jen.  Jen ran third and finished in 30 seconds.  Tiffany ran the last leg and finished in 7 seconds less than Mary.  How many seconds did it take the team to finish the race?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
223
4 friends are running a 4 x 100 relay race.  Mary ran first and took twice as long as Susan.  Susan ran second and she took 10 seconds longer than Jen.  Jen ran third and finished in 30 seconds.  Tiffany ran the last leg and finished in 7 seconds less than Mary.  How many seconds did it take the team to finish the race?
train