. A ladder leaning against the wall of a building is 13ft long. The distance from the building to the bottom of the ladder is 7ft less than the distance (d) to the top of the ladder. Find the distance d to the top of the ladder and the distance from the building to the bottom of the ladder.ladder location

can someone solve this using a quadratic equation and be able to tell me the distance to top of ladder and distance from building?

and another one is

The length of a rectangular envelope is 4 in greater than its width. The area of the envelope is 96 in^2. Find the length and the width of the envelope using a quadratic equation.Rectangular envelope.

Thx in advanced. im lost with these word problems