find the root

i know this answer should be 4 but how do i arrive there can someone show me how to do this please

X+16/x=8

multiply each term by x

x^2 + 16 = 8x
x^2 - 8x + 16 = 0
(x-4)(x-4) = 0
x-4 = 0
x = 4