6 and 8 I don’t get it

On #6, simply take the given number in the table, and multiply by the amount it costs. After that is done, simply subtract that from the $15 total and then use the remaining money to add how many of the other option you an purchase. EX: number of individul songs=6 which is $3, $12 dollars remain so 3 albums can be purchased.
X=3
Y=22
Z=0