### Instruction: Jake can dig a well in 16 days. Paul can dig the same well in 24 days. Jake, Paul and Hari together dig the well in 8 days. Hari alone can dig the well in
Answer Choices: (A) 48 (B) 99 (C) 22 (D) 27 (E) 92 Please write a program to solve it.### Response: # Jake's work rate is 1/16 well/day, Paul's work rate is 1/24 well/day, and together they can dig the well in 8 days, so their combined work rate is 1/8 well/day.
# Hari's work rate is the combined work rate minus Jake's and Paul's work rates.
hari_work_rate = 1/8 - 1/16 - 1/24
# The time Hari alone can dig the well is the reciprocal of his work rate.
hari_time = 1 / hari_work_rate
print(hari_time)