Write an equation to represent the statement.
Justin and his two brothers each earned the same amount of money washing cars. Each boy spent $12. Afterward, the boys had $24 altogether.
Let m represent the amount of money each boy received.
A. (m-12)=24
B. 2(m-12)=24
C. 3(m-12)=24
D. 3(m-24)=12