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

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