Answer:
0.1729 = 17.29% probability that a randomly chosen mathematics degree was a master's degree given that it was awarded to a woman
Explanation:
Bayes Theorem:
Two events, A and B.
In which P(B|A) is the probability of B happening when A has happened and P(A|B) is the probability of A happening when B has happened.
In this question:
Event A: Given to a woman.
Event B: Masters degree.
21% were master’s degrees
This means that

Women earned 40% of masters
This means that

Probability of the degree being given to a women:
52% of 76%, 40% of 21% and 22% of 3%. So

What is the probability that a randomly chosen mathematics degree was a master's degree given that it was awarded to a woman?
0.1729 = 17.29% probability that a randomly chosen mathematics degree was a master's degree given that it was awarded to a woman