At the fair, Adam bought 13 tickets. After riding the ferris wheel he deciced to buy 4 more tickets. If each ticket cost 9 dollars, how much money did Adam spend riding the ferris wheel?