Andrew bought 42 stamps, the small stamps were $0.13 and the large stamps were $0.18. How many of each kind did he buy if the total cost was $6.66?

Andrew bought 42 stamps, the small stamps were $0.13 and the large stamps were $0.18. How many of each kind did he buy if the total cost was $6.66?