If \(\sin ^{-1}\left(\frac{x}{5}\right)+\operatorname{cosec}^{-1}\left(\frac{5}{4}\right)=\frac{\pi}{2}\), then the value of \(x\) is