Let us assume the bigger number = x
Then the smaller number that we get = x/7
Now it is given in the question that we have to subtract the smaller number from the bigger number and the result is 18. Based on this information, we can create an equation
(x/7) - x = 18
(x - 7x)/7 = 18
-6x/7 = 18
-6x = 18 * 7
-6x = 126
-x = 126/6
-x = 21
x = -21
Now putting the value of x in
x/7 = - 21/7
= -3
Then the two numbers are -21 and -3.