Answer:
x=20 and y=16
Explanation:
Let the two numbers be x and y
Difference of two numbers was 4 that is:
(1)
And sum of one-half of each number was 18 that is:
(2)
For solving equation (1) and (2) we substitute x=4+y in equation (2) we get:

After simplification by taking LCM of the fraction we get:

After further simplification we get:



Now, substitute y=16 in x=4+y we get:
x=4+16=20
Hence, x=20 and y=16