### Instruction: Machine A working alone can complete a job in 9 hours. Machine B working alone can do the same job in 12 hours. How long will it take both machines working together at their respective constant rates to complete the job?
Answer Choices: (A) 21/8 (B) 27/5 (C) 12/7 (D) 36/7 (E) 15/7 Let's write a program.### Response: # define the rates of Machine A and Machine B
rate_A = 1 / 9
rate_B = 1 / 12
# calculate the time it takes for both machines working together
time_together = 1 / (rate_A + rate_B)
print(time_together)