We are asked to compare the energy of a mass at the top of a ramp with the energy at the bottom:
The energy at the top is the gravitational potential energy and is given by:
![U=mgh](https://img.qammunity.org/2023/formulas/physics/high-school/zdntvz0xwjo700699wai3u9qi1715uula8.png)
Where:
![\begin{gathered} m=\text{ mass} \\ g=\text{ acceleration of gravity} \\ h=\text{ height} \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/v3yx2saq9jxa4bp5fzembl3b9afznjdty6.png)
The energy at the bottom is kinetic energy and is given by:
![K=(1)/(2)mv^2](https://img.qammunity.org/2023/formulas/physics/college/89ts55elkus9wrqy6baloxb543n3yrist9.png)
Where:
![v=\text{ velocity}](https://img.qammunity.org/2023/formulas/physics/college/ev5zxymrsweb37auqz8eyoboegwr1q17dp.png)
Due to the principle of conservation of energy, the energy at the top is equal to the energy at the bottom is no energy is lost. Therefore, we have:
![U=K](https://img.qammunity.org/2023/formulas/physics/college/moyioevjupzcy1ie84czlo9fu1bdp3ff9k.png)
Or:
![mgh=(1)/(2)mv^2](https://img.qammunity.org/2023/formulas/physics/college/1se0fg6k7qlfykvve9jo3u1vlgahqezpdl.png)