The expression is 18 miles to 18 yards.
\The ratio is
.
The fraction is 
(1 mile = 1760 yards)
(Divide numerator and denominator by their GCF 1760)
(Cancel common terms)

Written in simplest form , the ratio is 1760 to 1.