Total employees = 32
Employees in AI = 75% * 32 = 24
Employees in cybersecurity = 25% * 32 = 8
In the AI team, Ratio of employees with a master’s degree to those without = 5:3
Let the number of employees with a master’s degree in AI be 5x and those without be 3x
5x + 3x = 24
x = 3
Employees with a master’s degree = 5 * 3 = 15
Employees without a master’s degree = 3 * 3 = 9
In the cybersecurity team, Ratio of employees with a master’s degree to those without = 3:5
Let the number of employees with a master’s degree be 3x and those without be 5x
5x + 3x = 8
x = 1
Employees with a master’s degree = 5 * 1 = 5
Employees without a master’s degree = 3 * 1 = 3
Combining,
Total employees with a master’s degree = 15 + 3 =18
Total employees without a master’s degree = 9 + 5 = 14
p:q =18:14 = 9:7
p = 9, q = 7