Is it just me or does there appear something wrong here? As jan1956 says, if the bottom of the ladder WAS three feet way from the wall, the top would be 29.849623 feet up the wall.
Now, if the bottom of the ladder is further away from the wall, as it has to be to be touching the concrete cube, it follows that the top of the ladder has to be lower down the wall than 29.849623 feet. Yet mjd gives the answer as 29.91 feet (ie further UP the wall).
I am not clever enough to follow mjd's workings so can they or somebody else tell me where my logic is going astray please?