At a garage sale, Samuel purchased used books and DVDs. He bought a total of 18 items and spent $11. Each book cost $0.50 and each DVD cost $0.75. How many books did Samuel purchase?