A pack of cardinal flower seeds costs $4 and a pack of petunia flower seeds costs $2.50, You buy the same number of packs of each type of flower and spend $39. How many packs of each do you buy?