From the letters of the word LOGARITHM we randomly select three different letters. Calculate the probability of the event A that all three selected letters are consonants, and the probability of the event B that at least one selected letter is a consonant.