I'd do 9x4=36 because the 9 is from your money and the 4 is from your books. Now since you want to find out how much 4 books cost you just multiply that by 9
Putting all the names in a hat and selecting six students because the rest would not have been random because you know who you picked just by looking but if u put names in a hat you don't know who you picked.