A factory produces two types of widgets: Type A and Type B. Type A widgets account for 70% of the production, while Type B widgets account for 30%. If it is known that 5% of Type A widgets and 10% of Type B widgets are defective, what is the probability that a randomly selected widget is defective?