Solve by Factoring z^2+9=10z