The following table represents the highest educational attainment of all adult residents in a certain town. If a resident who is 40 or older is chosen at random, what is the probability that they have completed a bachelor's or master's degree? Round your answer to the nearest thousandth.
