Let x = the number of guitars Steve has.

Barbeck has 2x guitars, and Davey has 3 * 2x = 6x guitars.

2x + 6x + x = 27

9x = 27

x = 27 / 9 = <<27/9=3>>3 so Steve has 3 guitars.

Barbeck has 2 * 3 = <<2*3=6>>6 guitars.

And Davey has 3 * 6 = <<3*6=18>>18 guitars.

# Answer

18
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Barbeck has two times as many guitars as Steve, but Davey has three times as many guitars as Barbeck. If there are 27 guitars altogether, how many guitars does Davey have?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
18
Barbeck has two times as many guitars as Steve, but Davey has three times as many guitars as Barbeck. If there are 27 guitars altogether, how many guitars does Davey have?
train