### Instruction: A is half good a work man as B and together they finish a job in 26 days. In how many days working alone B finish the job?
Answer Choices: (A) 98 days (B) 21 days (C) 17 days (D) 39 days (E) 19 days Please write a program to solve it.### Response: # Let's denote the work done by A in one day as a and by B as b. We know that a = 0.5b and (a + b) * 26 = 1 (the whole work). We can solve this system of equations to find b.
# 0.5b + b = 1/26
b = 1 / (26 * 1.5)
# Now we can find how many days B needs to finish the job alone.
days_b = 1 / b
print(days_b)