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