Assume 5x=y. Then 5-x becomes 1/y. By simplyfying you will get a quadratic in variable y. Solve and find the value of y by using quadratic formula. After getting the value of y by using the law i.e., if bases are equal then powers should be eqauted. Finally you will get the value of x.
PLEASE APPROVE IF I AM CORRECT