Let x be the unknown number. 5 times that number means 5x. If we subtract 189 from this number, we get 5x-189.
Also, half the original number is x/2.
The two operations output the same result, so we have the following equation:

Subtract x/2 from both sides and add 189 to both sides to get

Multiply both sides by 2 to get

Finally, divide both sides by 9:
