Tina had d dollars. She bought three cupcakes for her and her friends, which cost c dollars each. How much money does she have left after being so nice?