At a garage sale, Zoe spent $60 on 1 hat and 2 pairs of shoes.If she spent $9 more on each pair of shoes than on the hat, how much did Zoe spend on the shoes?

cost of hat ---- x

cost of shoes ---- x+9

x + 2(x+9) = 60

solve for x