<human>:  Danny helps his friends carpool to work. He has to drive 8 miles to the first friend's house, half that distance to the second friend's house, then 3 times the total distance driven so far to get to work. How many miles does Danny drive between the second friend's house and work?
<bot>: How far is the first friend's house? ** First find the distance to the second friend's house by halving the distance to the first friend's house: 8 miles / 2 = <<8/2=4>>4 miles
How far is the second friend's house? ** Then add that amount to the distance to the first friend's house: 4 miles + 8 miles = <<4+8=12>>12 miles
How far is the second friend's house to work? ** Then triple that number to find the distance from the second friend's house to work: 12 miles * 3 = <<12*3=36>>36 miles
#### 36