### Instruction: The probability that A speaks truth is 3/5 and that of B speaking truth is 4/7. What is the probability that they agree in stating the same fact?
Answer Choices: (A) 18/35 (B) 18/38 (C) 18/36 (D) 18/16 (E) 18/31 Let's write a Python program.### Response: # define the probabilities of A and B speaking truth
prob_a = 3/5
prob_b = 4/7
# calculate the probability that they agree in stating the same fact
prob_agree = prob_a * prob_b + (1 - prob_a) * (1 - prob_b)
print(prob_agree)