Let x be the amount spent on a shirt.

Greg spent 2x+9 dollars on shoes.

300=x+(2x+9)

300=3x+9

291=3x

x=<<97=97>>97$

Greg spent 97$ on a shirt.

# Answer

97
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
While shopping, Greg spent 300$ on a shirt and shoes. If Greg spent 9 more than twice as much on shoes as he did a shirt, how much did Greg spend on a shirt?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
97
While shopping, Greg spent 300$ on a shirt and shoes. If Greg spent 9 more than twice as much on shoes as he did a shirt, how much did Greg spend on a shirt?
train