Ben has 40+8 = <<40+8=48>>48 apples.

There are 48/8 = <<48/8=6>>6 apples in every eighth.

Tom has 6*3 = <<6*3=18>>18 apples.

# Answer

18
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Ben has 8 apples more than Phillip does. Tom has three eighths as many apples at Ben has. If Phillip has 40 apples, how many apples does Tom have?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
18
Ben has 8 apples more than Phillip does. Tom has three eighths as many apples at Ben has. If Phillip has 40 apples, how many apples does Tom have?
train