Hello!
Question 1: All composite numbers 1-50 are 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25, 26, 27, 28, 30, 32, 33, 34, 35, 36, 38, 39, 40, 42, 44, 45, 46, 48, 49, 50. So, if there are 34 composite numbers there is a 68 percent chance a composite number will be picked.
Question 2: All prime numbers 1-25 are 2, 3, 5, 7, 11, 13, 17, 19, 23. So, if there are 9 prime numbers out of 25 there is a 36 percent chance a prime number will be picked and a 44 percent chance a non-prime number will be picked.
I Hope this Helps!
Have a great day!