Question 1175435
Not clear what you want.
x+y=12
he has 12-x miles to walk
y=12-x with units miles