Let the two numbers be $x$ and $y$.
Let $x$ be the larger number and $y$ be the smaller number, so $x \gt y$.
Half the smaller number is $\frac{y}{2}$.
This is subtracted from both numbers. The new numbers are:
$x' = x - \frac{y}{2}$
$y' = y - \frac{y}{2} = \frac{y}{2}$
Since $x \gt y$, it is clear that $x' \gt y'$.
So, $x - \frac{y}{2}$ is the larger of the resulting numbers and $\frac{y}{2}$ is the smaller.
According to the question, the larger resulting number is three times the smaller one.
Therefore, we have the equation:
$x - \frac{y}{2} = 3 \times \left(\frac{y}{2}\right)$
$x - \frac{y}{2} = \frac{3y}{2}$
Adding $\frac{y}{2}$ to both sides:
$x = \frac{3y}{2} + \frac{y}{2}$
$x = \frac{4y}{2}$
$x = 2y$
The ratio of the two numbers is $\frac{x}{y} = \frac{2}{1}$.
So, the ratio is $2 : 1$.