Answer:
H=(A*D)-(B*(D-1))
H = A*D- B*D+B
H-B = (A-B)*D
D= (H-B)/(A-B)
Python 3 code
import math
H=int(input('Enter Height: '))
up=int(input('Enter Number of Feet Up: '))
down=int(input('Enter Number of Feet Down: '))
D=(H-down)/(up-down)
print(math.ceil(D),' Days'
Explanation:
The output of the Program is given in the attached file.