[tex]x\to \ lungimea \ drumului \\\\ \frac{3}{8} \ din \ x= \frac{3}{8}*x\to \frac{3x}{8}-prima \ zi \\\\ x^{(8}-\frac{3x}{8}= \frac{8x-3x}{8}\to \frac{5x}{8}-restul \\\\ \frac{5x}{8}=45 \\\\ x=\frac{\not45*8}{\not5} \\\\ x=9*8 \\\\ \boxed{x=72 \ km}[/tex]