jake and jeremy both join a book club. jake pays $6 per book plus a $12 joining fee while jeremy pays a $17 joining fee and $5 per book. How many books will they have to buy before they are paying the same amount?

6x+12 = 5x+17

x = 5