my solution:
It’s not linear though - the x cents part applies to only the first 1/9 mile, not each 1/9 mile per mile.