A block of mass m is launched horizontally from a compressed spring on a frictionless track that turns upward at a 30° angle, as shown in the figure below. At the end of the track it is launched into the air. Find an expression for its horizontal range x (defined in the figure below), as a function of the distance d by which the spring is initially compressed, the spring constant k, the acceleration due to gravity g, and the height h of the ramp.