Answer:
21 and 3
Explanation:
Let's call the small number 
 and the larger number 
.
According to the problem:

And when you substract the smaller number from the larger number you get 18:

substituting the first equation in the second one:

the larger number is 21.
Using the first equation to find 
:

the smaller number is 3.