So I was going to through a fairly basic problem which I have posted below.
The first step is to use similarity of triangles and solve it(pic also posted below). We use similarity of triangles for the other cone as well(skipping q few steps)
Lastly, we arrive at an equation in which 'R²' cancels out on both sides and it is written that the volume of water in the cone is independent of 'R'. How does one arrive at that conclusion just because the R² terms cancels out ?


What these calculations revealed is that any cone that is $1+\sqrt{85}$ centimeters tall could be filled with water to meet the conditions of this problem. You could choose any radius for the base that you liked, and as long as you filled it up with water to $2$ cm from the top, when you sealed it and flipped it over there would be $8$ cm of air at the top.
You discovered this independence when you started solving an equation with two variables and one of them cancelled out like the $R$ did in this equation. The amount of water that goes into the cone was dependent on the radius of the base of the cone, but it was not necessary to consider it when determining the height of the cone.