Two customers went to a bookstore to purchase paperback and hardcover books. Each paperback book costs the same amount, and each hardcover book costs the same amount. The first customer paid $18 for 4 paperback books and 2 hardcover books. The second customer paid $36.25 for 5 paperback books and 5 hardcover books. What was the cost in dollars of each hardcover book?