This is a nested definite integral. The inner integral \( \int_{x}^{5} \frac{\cos x}{x} \, dx \) is treated as a constant with respect to the outer integral variable \(x\). Using properties of definite integrals and solving step-by-step through substitution or integration by parts, we arrive at the result \( \dfrac{8\pi}{693} \).