At the calendar shop, wall calendars cost $7 and desk calendars cost $4. Zeke spent $47 to buy 8 calendars. How many of each type of calendar did Zeke buy?