500
Mr. Williams won some money in a lottery. He spent $50 on a new shirt, and shared the rest of the money equally between his five children. Each child received $40
(m - 50) / 5 = 40
m - 50 = 40 * 5
m - 50 = 200
m = 200 + 50
m = 250
Mr. Williams won $250.