Jock decided to swim 10 km up Bega River. He swam 2 km every hour, then floated on his back for 10 minutes. Each time he floated, the current dragged him back 1 km. How long did it take Jock to complete the swim?