<em><u>Answers:</u></em>
The pencil costs $0.25
The ruler costs $1.25
<em><u>Explanation:</u></em>
Assume that the cost of the pencil is x and that the cost of the ruler is y.
<u>We are given that:</u>
1- The total cost is $1.5
<u>This means that:</u>
x + y = 1.5 ...........> equation I
2- The ruler costs $1 more than the pencil
<u>This means that:</u>
y = x + 1 ............> equation II
<u>Substitute with equation II in equation I and solve for x as follows:</u>
x + y = 1.5
x + x + 1 = 1.5
2x = 1.5 - 1
2x = 0.5

<u>This means that:</u>
cost of pencil = x = $0.25
cost of ruler = 1 + 0.25 = $1.25
Hope this helps :)