Write SQL query to solve given problem: Among all the rivers finally flows to the sea of 540m in depth, which one has the longest length?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T2.Name FROM sea AS T1 INNER JOIN river AS T2 ON T2.Sea = T1.Name WHERE T1.Depth = 540 ORDER BY T2.Length DESC LIMIT 1