The first one is debit because it’s her money and the second is credit because he has to pay off his card after he bought everything . basically debit is where you already have the money and credit is where you get a card from the bank and they give you a certain amount of money but you have to pay it off later it’s like a loan .