One way to set up a correct equation is to use the definition of tangent:
Solve this equation for x:
This rounds to 6.53.