Arvind travels from town $\text{A}$ to town $\text{B}$, and Surbhi from town $\text{B}$ to town $\text{A}$, both starting at the same time along the same route. After meeting each other, Arvind takes $6$ hours to reach town $\text{B}$ while Surbhi takes $24$ hours to reach town $\text{A}$. If Arvind travelled at a speed of $54 \mathrm{~km} / \mathrm{h}$, then the distance, in km, between town $\text{A}$ and town $\text{B}$ is