Answer: 45 pencils were in the box originally
Explanation:
Suppose there were x pencils in the box originally. Since 18 pencils is equal to 2/5 of the total number of pencils in the box originally, set 18 equal to 2/5x or
18=2/5x
Now solve
x = 18x5/2 = 45