Tom rides the chook bus part way and walks the reminder. He walks 3 minutes longer than he rides. If it takes Tom 17 minutes to arrive at school, how long does he spend on the bus?