For this problem, since you have a right triangle, you can use the Pythagorean Theorem to fine the length of the ladder (the hypotenuse of the triangle).
Pythagorean Theorem (where c is the hypotenuse): a² + b² = c²
The triangle's leg lengths are 8 and 6; substitute into the theorem: 8² + 6² = c²