a) Josh is spending money at an average rate of $4 per day. After 10 days, he has $50 left. How much money did he have to begin with?

b) Write and equation for the situation.