let's firstly convert the mixed fraction to improper fraction and then proceed.
[tex]\stackrel{mixed}{2\frac{3}{5}}\implies \cfrac{2\cdot 5+3}{5}\implies \stackrel{improper}{\cfrac{13}{5}} \\\\[-0.35em] ~\dotfill[/tex]
[tex]\begin{array}{ccll} liters&hours\\ \cline{1-2} \frac{13}{5}&\frac{2}{4}\\[1em] x&1 \end{array}\implies \cfrac{~~\frac{13}{5} ~~}{x}~~ = ~~\cfrac{~~\frac{2}{4} ~~}{1}\implies \cfrac{~~\frac{13}{5} ~~}{\frac{x}{1}}~~ = ~~\cfrac{2}{4}\implies \cfrac{13}{5}\cdot \cfrac{1}{x}=\cfrac{1}{2} \\\\\\ \cfrac{13}{5x}=\cfrac{1}{2}\implies 26=5x\implies \cfrac{26}{5}=x\implies 5\frac{1}{5}=x[/tex]