Duncan and Rob, you are correct it does come down to a quartic equation. Using similar triangles and Pythagoras' equation if you take the base of the ladder to the near corner of the box as y you can show that the top of the ladder to the near corner of the box is 4/y. The quartic equation is y^4+4y^3-92y^2+16y+16=0. Luckily I still have my trusty Texas Instruments TI-68 which solves quartic equations and gives the following values for y: 0.521036706, 7.677002321, -0.33724556, -11.86079346
The two negative numbers do not work as the top of the ladder will be 2+11.86 above the ground and requires a ladder 14.06 feet in length. The other two give the answers that work. x equals 2+7.677002321=9.677002321 or x equals 2+0.521036706=2.521036706, the latter being a bit silly.
Somewhere I have got a spreadsheet I did that solves polynomials using the matrix method that I put together just to see how well it worked.
Correction, solves simultaneous equations, not polynomials,
Martin C
Edited By Martin Connelly on 17/12/2021 19:10:10
Edited By Martin Connelly on 17/12/2021 19:46:52