Answer:
Let x be the the amount james spent for dinner then x - 5 wpuld be the answer to your first problem