The probability that a student correctly answers on the first try (the event A) is P(A) = 0.4. If the student answers incorrectly on the first try, the student is allowed a second try to correctly answer the question (the event B). The probability that the student answers correctly on the second try given that he answered incorrectly on the first try is 0.3. Find the probability that the student answers the question on the first or second try.