QUESTION: William started with 40 pieces of candy and gave away x pieces. Hannah had 70 pieces of candy and
gave away three times as many pieces as William did.
How many pieces of candy did William give away if they had the same number of pieces of candy left?

A. 30
B. 18
C. 15
D. 8