Indira bought 6 yards of material for drapes and a bag of buttons. She spent a total of $39. If the buttons cost her $3, how much was each yard of material?

39 - 3 = 36

36/6 = ?