<human>:  There are six more white birds next to a cage than grey birds in the cage. If the number of grey birds in the cage is 40, and after ten minutes, half of the birds in the cage are freed and fly away, calculate the total number of birds remaining.
<bot>: How many white birds are there? ** If the number of grey birds is 40, there are 40+6 = <<40+6=46>>46 white birds near the cage.
How many grey birds remain? ** When half of the grey birds fly away, the number that remains is 1/2*40 = <<1/2*40=20>>20
How many birds are there? ** The total number of birds is 20+46 = <<20+46=66>>66 in and next to the cage.
#### 66