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
B2(m-12)=24
C3(m-12)=24
D3(m-24)=12