Katie spent $465 on DVDs and CDs. The CDs cost $15 each, and the DVDs cost $19 each. A total of 27 CDs and DVDs were purchased. How many of each did she buy?

(solve by substitution or elimination methods only)