You can
put this solution on YOUR website!Look at it this way.
You have a system of equations.
Two equations with two unknowns, p and e.
You can solve the system to find p and e.
5p + 3e = .65
3p + 2e = .40
There are several methods you can use to solve this system of equations.
We'll use the substitution method.
First off, let's multiply both sides by 100 to get rid of the decimal.
1.

2.

You can use equation 1 to get 300p in terms of e and substitute into eq.2,
1.

Multiply both sides by (3/5).

Now substitute that value into equation 2 and solve for e.
2

Now you can use either equation to solve for p. I chose equation 2.

So, the pencil costs a dime and the eraser costs a nickel.
You can check your answers by using your original equations.
5p + 3e = .65
5(0.10)+3(0.05)=.65
0.50+0.15=0.65
0.65=0.65
True
3p + 2e = .40
3(0.10)+2(0.05)=0.40
0.30+0.10=0.40
0.40=0.40
True
Your answers led to true statements.
They are good answers.