Umi, this is a tricky one for sure.
If 3/5 are yellow, then 2/5 must not be yellow, right? Again, if 5/7 of those are red, 2/7 are black.
(2/5)(2/7) = 4/35 are black
If 4/25 of the total is 12...
(4/25)t = 12
(25/4)(4/25)t = 12(25/4)
t = 75 beads total
Hope this helps!