### Instruction: A is twice as good a workman as B and they took 10 days together to do the work B alone can do it in.
Answer Choices: (A) 17 days (B) 12 days (C) 30 days (D) 25 days (E) 27 days Please respond by writing a program in Python.### Response: # Let's assume that B can do the work in x days
# A is twice as good as B, so A can do the work in x/2 days
# Together, A and B can do 1/x + 1/(x/2) = 3/(2x) of the work in one day
# They took 10 days to do the work, so in one day they can do 1/10 of the work
# Therefore, 3/(2x) = 1/10
# Solving for x, we get x = 30
x = 30
print(x)