A resistor of resistance \(20\sqrt{10}\,\Omega\) is connected to an alternating source of voltage \[ V=(A\sin\omega t+40\cos\omega t)\,\text{V}. \] If the rms value of the current through the resistor is \(500\,\text{mA}\), then the value of \(A\) is: