Jasmine has $50 and gives $1 to the homeless man she passes every day on her way to school. Let x represent the number of days she passes him on her way to school, and let y represent the amount of money she has left. Write an equation to model this.