<human>:  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?
<bot>: Define a variable ** Let x be the amount spent on a shirt.
How much did Greg spend on shoes? ** Greg spent 2x+9 dollars on shoes.
Set up an equation ** 300=x+(2x+9)
Combine like terms ** 300=3x+9
Subtract 9 from both sides ** 291=3x
Divide both sides by 3 ** x=<<97=97>>97$
How much did Greg spend on a shirt? ** Greg spent 97$ on a shirt.
#### 97