In your equation you assumed that the length of the square prism is equal to s (the side of the base), isn't correct as if these lines were equal then the shape would be a cube rather than a square prism, nonetheless using my differing aprroach doesn't give an answer, so I assume the question wasn't written properly, as you need to assume the square prism is a cube to solve for l.