This problem can be solved by the system and where c represents the amount of money that Charlie spent, and d represents the amount of money that Deanna spent.