Answer
$240\;miles$.
Work Step by Step
We have $x=4$.
Use the second equation.
$d(x)=65x-20,$ if $2\lt x \leq5$
Substitute $4$ for $x$.
$\Rightarrow d(4)=65(4)-20$
Simplify.
$\Rightarrow d(4)=260-20$
$\Rightarrow d(4)=240$
Hence, the total distance is $240\;miles$.