All these problems require you to set up a system of equations to solve.
Read the problem carefully and determine what can be done.
From the first sentence in the problem
From the second sentence
From the first equation which in turn changes the second equation into
Can you solve it from here?