A block with mass m is released from rest and slides a distance d down a frictionless inclined plane with an angle θ above the horizontal. At the end of distance d the block strikes a spring of spring constant K.
Find the speed of the block just before it hits the spring.