Let's call the two numbers x and y.
According to the problem statement, we know that:
x is as twice as far from 23 as it is from 38, meaning:
|x - 23| = 2 * |x - 38|
y is also as twice as far from 23 as it is from 38, meaning:
|y - 23| = 2 * |y - 38|
We can solve for x and y using either equation:
Starting with the first equation:
|x - 23| = 2 * |x - 38|
Expanding the absolute values:
x - 23 = 2 * (x - 38) or
x - 23 = -2 * (x - 38)
Solving for x in either case:
x = 29 or x = 47
Similarly, solving for y:
y = 29 or y = 47
So, the two numbers are 29 and 47