<human>:  Adam has 18 magnets. He gave away a third of the magnets, and he still had half as many magnets as Peter. How many magnets does Peter have?
<bot>: How many magnets did Adam give away? ** Adam gave away 18/3 = <<18/3=6>>6 magnets.
How many magnets did Adam have left? ** Adam had 18-6 = <<18-6=12>>12 magnets left.
How many magnets does Peter have? ** Peter has 12*2 = <<12*2=24>>24 magnets.
#### 24