Well there is an ancient proof that says this problem cannot be solved exactly in the real world. So if this is a practical problem, you cannot get an exact decimal answer, and one (inefficient) way to solve your practical need is to experiment using a tape measure and chalk until you have the ladder arranged in a good enough way.
Of course, if this is a problem in a math class, what is wanted is is an exact answer, which can then be applied to practical problems without the need for experimentation.
[MATH]a^2 + b^2 = 10^2.[/MATH]
Hmm two unknowns requires two equations involving the unknowns. Do I know a relationship involving a and b????