I solved this by hand first, then cymath, then Wolfram alpha. we all agree the solution to the equation involved is x=-3 however -3 is not a multiple of 6. if you plug it in you get a solution of 24 but I don't consider this to be a valid question.
This is because if you draw a diagram, and label all the sides of the triangle (opp, hyp, adj), the adjacent angle is 3m. You can now use the sine rule to find the hypotenuse (length of ladder) by doing: cos 30= 3/h. You divide cos 30 by 3 and you get the answer of 3.64m rounding to 2 decimal places.