Final answer:
Roger had $18.
Step-by-step explanation:
To solve this problem, we can set up a system of equations. Let's say that the cost of a package of baseball cards is x dollars. Given that Roger has $2 left after buying 5 packages, we can write the equation:
5x + 2 = Total amount of money Roger had
Similarly, given that Roger needs $8 more after buying 7 packages, we can write the equation:
7x - 8 = Total amount of money Roger had
To find the total amount of money Roger had, we need to solve this system of equations. By solving these equations simultaneously, we can find the value of x (cost of one package of baseball cards) and substitute it into either equation to find the total amount of money Roger had.
Calculating the values, we get x = $2 and the total amount of money Roger had = $18.