Adam gave away 18/3 = <<18/3=6>>6 magnets.

Adam had 18-6 = <<18-6=12>>12 magnets left.

Peter has 12*2 = <<12*2=24>>24 magnets.

# Answer

24
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
24
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?
train