To find the ratio of the work done by the gas to the heat absorbed when the gas changes from state \(A\) to state \(B\), we need to analyze the behavior of a monatomic ideal gas under these conditions.
Hence, the ratio of work done by the gas to the heat absorbed is \(\frac{2}{5}\).