An agricultural cooperative packages olive oil using two production lines, M1 and M2. Line M1 produces 60% of the bottles with a defect rate of 2%, while line M2 produces 40% of the bottles with a defect rate of 5%. A defective bottle is selected at random. According to Bayes' formula, what is the probability that it came from line M1?