Q.
A block of mass $m$ slides from rest at a height $H$ on a frictionless inclined plane as shown in the figure. It travels a distance $d$ across a rough horizontal surface with coefficient of kinetic friction $\mu$ and compresses a spring of spring constant $k$ by a distance $x$ before coming to rest momentarily. Then the spring extends and the block travels back attaining a final height of $h$.
Then
KVPYKVPY 2013Laws of Motion
Solution: