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? Let's think step by step and output the final answer after "####".
user
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.
#### 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