Let the legs of the triangle be a and b, and the hypotenuse c.
Your first instinct might tell you to use the Pythagorean theorem to go about solving this because . This works, but it is slow.
The fastest way to solve this is to recognize that the right triangle is a special triangle where the ratio of the sides are 3:4:5. This means that if the legs are 9 and 12, then the hypotenuse is 15 because 3*3 is 9, 3*4 is 12, and 3*5 is 15.
So all you do is you divide 2 1/2 by .25 and you get 10 then you know one fourth or 25% of that package is 10 berries so the rest or 30% left over is 30 berries.