We have two conditions for the tokens Riley and Erik have earned. Let's call x and y to the number of tokens of Riley and Erik respectively. The first condition states that
Solving for y
The second condition is that the ratio of the number of tokens that Riley had to the number of tokens that Erik has is 8 to 7. It's written as