Christine went shopping and bought each of her eighteight nephews a​ gift, either a video costing​ $14.95 or a CD costing​ $16.88. She spent ​$131.18 on the gifts. How many videos and how many CDs did she​ buy?