Write a variable expression for the length of the bottom black bar with being the length of the orange bar:
(Click on image for larger view)
Formula for length of black bar =
Hint: