At a certain temperature, the degrees of freedom per molecule for gas is \( 8 \). The gas performs \( 150 \, \text{J} \) of work when it expands under constant pressure. The amount of heat absorbed by the gas will be _____ \( \text{J} \).