Billy and Margaret are competing with each other to see who can swim 10 laps the fastest. Billy swims his first 5 laps in 2 minutes, swims the next 3 laps in 4 minutes, swims the next lap in 1 minute, then swims his final lap. Margaret finishes swimming all of her laps in 10 minutes. Billy wins the competition by finishing his laps 30 seconds before Margaret does. In seconds, how long did it take Billy to swim his final lap? Let's think step by step and output the final answer after "####".
user
Margaret finished all of her laps in 10 minutes * 60 seconds = <<10*60=600>>600 seconds.
Billy’s first 5 laps took 2 minutes * 60 seconds = <<2*60=120>>120 seconds.
His next 3 laps took 4 minutes * 60 seconds = <<4*60=240>>240 seconds.
His ninth lap took 1 minute * 60 seconds = <<1*60=60>>60 seconds.
So his first 9 laps took 120 + 240 + 60 = <<120+240+60=420>>420 seconds.
Billy finished swimming his laps before Margaret so all of his laps took a total of 600 – 30 = <<600-30=570>>570 seconds.
This means that it took 570 seconds in total swimming time – 420 seconds in time spent swimming the first 9 laps = 150 seconds for Billy to swim his final lap.
#### 150
Billy and Margaret are competing with each other to see who can swim 10 laps the fastest. Billy swims his first 5 laps in 2 minutes, swims the next 3 laps in 4 minutes, swims the next lap in 1 minute, then swims his final lap. Margaret finishes swimming all of her laps in 10 minutes. Billy wins the competition by finishing his laps 30 seconds before Margaret does. In seconds, how long did it take Billy to swim his final lap?
train