Darla decides to buy books and magazines with her money. Books cost $16 each and magazines cost $8 each. Write a function that shows the function of the total money that she spends.