There are 40 students in a class. Six of them wear glasses,four of them wear contact lenses and the rest can see without vision correction. A student is selected at random. Find the probability that the student selected a) does not have to correct his vision, b) is visually impaired.