For this case we propose a system of equations:
x: Let the variable representing the cost of a pencil
y: Let the variable representing the cost of an eraser
![x = 25 + y\\8x = 0.80 + 10y](https://img.qammunity.org/2020/formulas/mathematics/middle-school/4avvds0pj7urxvjznwe3m15n3yq1sm8xn4.png)
We substitute the first equation in the second one:
![8 (25 + y) = 0.80 + 10y200 + 8y = 0.80 + 10y\\200-0.80 = 10y-8y\\199.2 = 2y\\\frac {199.2} {2} = y\\y = 99.6](https://img.qammunity.org/2020/formulas/mathematics/middle-school/k2p6h189oaqfkfgmvrh66iucmctxlmm00o.png)
Thus, the cost of an eraser is 99.6 cents.
On the other hand:
![x = 25 + 99.6\\x = 124.6](https://img.qammunity.org/2020/formulas/mathematics/middle-school/aj43o1ovabmxvlmwm81tz4mwov163q0c85.png)
Thus, the cost of a pencil is 124.6 cents.
Answer:
The cost of an eraser is 99.6 cents.
The cost of a pencil is 124.6 cents.