We can use quadratic fromula as well as factorisation method.
Factorisation method==>
x^2-10x + 16 = 0
First of all split the middle term.
For that find out two numbers whose sum is - 10 ( coefficient of x ) and whose product is +16 ( constant term )
Such two numbers are -8 and -2(( To get these numbers consider the factors of +16 , constant terms and try with different sign untill you get the numbers.)
Because,
-8 * -2 = -16 and -8 + ( -2 ) = -10
Now rewrite the given equation as follows,
x^2 - 8x - 2x + 16 = 0
Now group the terms as follows,
(x^2 - 8x ) - (2x - 16 ) = 0 ( when we put negative sign before the brackets, the sign inside the brackets will change)
Now take out common factor from each brackets.
==> x ( x - 8 ) - 2 ( x - 8 ) = 0
Again ( x - 8 ) is common in both terms, take it out.