Q:

Divide $1015$ USD between 3 people

So I stumbled across this math problem:
$1015$ USD is to be shared between $3$ people: Person A, Person B and Person C.
Person A gets double of what Person B gets and Person B gets $100$ USD more than Person C
Basically:
$A = 2B$
$B = C + 100$
$A + B + C = 1015$
Can someone please tell me how it's solved, rather than telling me the outcome?
UPDATE: Thank you to people who helped me solve it. What I realized was, that I used the equation C = B - 100 to try to solve the problem. You made me realize that. So thank you.

A:

Basically, $A=2B$ and $B=C+100$. We have $$A+B+C =1015$$ $$\Rightarrow 2B+B+(B-100) =1015$$ because $B+C=100$. Hence, $$4B-100 =1015 \Rightarrow B=\frac{1115}{4}$$ Then we can find $A=\frac{1115}{2}$ and $C=\frac{715}{4}$. Hope it helps.

