Units such as "feet" need to be capitalized so Mathematica will recognize that they are actually Units. Also, if you want the Quantity command to update dynamically then you need wrap Dynamic around it. Try this for the last line:
Dynamic[Quantity[b,lengthUnit]]
Here is more information about Quantity[] and Units .
Hope that works for you.