An ideal massless spring, inclined plane and mass arrangement is
given. A block of mass m is released from rest at the top of a
frictionless incline. The block comes to rest momentarily after it
has compressed this spring by ∆x. Initially distance between the block and the incline is d and the incline makes an angle theta with the horizontal