During a sale at the electronics store​, movies sold for ​$3 and CDs sold for ​$2.50. Isla spent ​$24 and bought a total of 9 movies and CDs. How many of each did she ​buy?