Hunter loves riding Ferris wheels and roller coasters. While visiting the Hancock County Fair, he first went on the Ferris wheel 1 time and the roller coaster 2 times, using a total of 15 tickets. Then, after taking a break and having a snack, Hunter went on the Ferris wheel 5 times and the roller coaster 4 times, using a total of 39 tickets. How many tickets does it take to ride each attraction?