The lateral surface area of a cylinder is equal to the curved surface area of a cone. if the radii of both are same, find the ratio of the height of the cylinder to the slant height of the cone.