Since there is a right angle, you can use Pythagoras' Theorem:
So x = √(24² + 7²) = 25
---------------------------------------------------------
Answer:
25
She can expect to pick a black marble 125 times
The answer could be 45 but I'm not entirely sure