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