The sum of two whole number is 23.The different between them is 5.What is the smaller number?

n + (n+5) = 23

2n+5 = 23
2n=18
n=9