### Instruction: A can do a work in 6 days. B can do the same work in 4 days. Both A&B together will finish the work and they got $2000 from that work. Find their shares?
Answer Choices: (A) 600,400 (B) 500,500 (C) 300,700 (D) 800,1200 (E) 550,1450 Please respond by writing a program in Python.### Response: # define the number of days it takes for A and B to complete the work individually
days_a = 6
days_b = 4
# calculate the efficiency of A and B
efficiency_a = 1 / days_a
efficiency_b = 1 / days_b
# calculate the total efficiency when A and B work together
total_efficiency = efficiency_a + efficiency_b
# calculate the share of A and B
share_a = (efficiency_a / total_efficiency) * 2000
share_b = (efficiency_b / total_efficiency) * 2000
print(share_b)