System block and plane.
The block loses gravitational potential energy and the block and plane gain an equal amount of kinetic energy as the are no dissipative forces, eg friction.
Two forces on the block:
1 External gravitational force, $mg$, downwards due to attraction of Earth
2 Internal normal force on slope of plane due to the plane.
Positive work done by force 1 is $mgh$ where $h$ is the vertical drop of the centre of mass of the block.
Negative work is done by force 2 as there is a displacement of the force along the line of action of this force in the opposite direction to the force.
Three forces on the block:
3 External gravitational force, $Mg$, downwards due to attraction of Earth
4 Internal normal force on slope of plane due to the block - equal magnitude opposite direction to force 2 (N3L)
5 External normal force on base of plane due to the surface.
No work is done by forces 3 as the centre of mass of the plane does not move vertically.
Positive work is done by force 4 as there is a displacement of the force along the line of action of this force in the direction of the force.
No work is done by force 5 as the displacement of the force is perpendicular to the direction of the force.
The negative work done by internal normal force 2 plus the positive work done by internal normal force 4 is equal to the net work done by the two internal normal forces and is zero, as shown below.

At time $t$ the block is at position $A$ on the plane and at some later time $t+\delta t$ the block is at position $B$ on the plane.
The red vectors shown the normal force on the block due to the plane at the s(tart) and f(inish) and the blue vectors shown the same for the normal force on the plane due to the block.
For both normal forces the displacement of the forces along their line of action is $\delta s$.
The work done by the normal force on the block is $N_{\rm bp}\times(-\delta s)$ and the work done by the normal force on the plane is $N_{\rm pb}\times(+\delta s)$.
As the normal forces have the same magnitude the net work done by the two normal forces is zero.