James earned a total of $900 this week. This total was $10 less than five times the amount he earned

James earned a total of $900 this week. This total was $10 less than five times the amount he earned last week. Write an equation that could be used to find out how much James earned last week.