<human>:  Kenny played basketball last week. He ran for twice as long as he played basketball, and he practiced on the trumpet for twice as long as he ran. If he practiced on the trumpet for 40 hours, how many hours did Kenny play basketball last week?
<bot>: How many hours did Kenny run for? ** Kenny ran for 40/2=<<40/2=20>>20 hours.
How many hours did Kenny play basketball last week? ** Kenny played basketball for 20/2=<<20/2=10>>10 hours.
#### 10