You can put this solution on YOUR website! Slant height of a cone is the hypotenuse of a right triangle with altitude one leg and the radius of the circle at the base the other.
The diameter is 6 cm, the height 8 cm, and the slant height is 10 cm, a 6-8-10 right triangle.