Talking as if the balls do not get put back into the bag, the first probability is 3/10 for yellow. For red it will be 7/9 because there is one less ball (yellow) in the bag.
Answer: 4,111.7 mm³
Step-by-step explanation:
You need to use this formula to calculate the volume of the square pyramid:

Where "s" is the lenght of any side of the square base and "h" is the height of the pyramid.
Find the height with the Pythagorean Theorem:

Where "a" is the hypotenuse and "b" and "c" are the legs of the right triangle. Let be "c" the height of the pyramid.
You can identify in the figure that:

Then, you can find the height:

Then, knowing that:

You can calculate the volume:

Center:
Center is a point in space, which is at equal distance from all the others points in that space.