If an object is dissolved in a container of two liquid layers so that volume $V_1$ is in liquid 1 and volume $V_2$ is in liquid 2. $ρ_1>ρ_2$ be given where it refers to respective densities.
I want to know why the buoyant force liquid layer 1 gets included though it's above the object. I have tried myself that the liquid layer 1 would exert a pressure on top of the object and also a pressure on layer 2 which transmits to the bottom of object by Pascal's law and the net is $ρ_1V_1g$. I have proven it for some regular objects but can't do it for irregular any rigid object. I know that layer 1 doesn't directly acts buoyant force it's a pure mathematical coincidence . I want to know the theoretical proof of this coincidence for any irregular, rigid body(i have tried integrating but couldn't proceed). Also if anyone can help in extending the concept to n layers would also helpful.