We have:
$15 a day
17 cents per mile = $0.17
Total charge = $50.02
Then, let x miles was it driven.
We have the following equation:
[tex]15+0.17x=50.02[/tex]Next, solve for x
[tex]\begin{gathered} 15+0.17x-15=50.02-15 \\ 0.17x=35.02 \\ \frac{0.17x}{0.17}=\frac{35.02}{0.17} \\ x=206 \end{gathered}[/tex]Answer: they drove 206 miles