We can use the formula for heat absorbed or released:
\[
Q = m c \Delta T
\]
where:
- \( Q = 1800 \, \text{J} \) (heat energy),
- \( m \) is the mass of the aluminium,
- \( c = 0.90 \, \text{J/g°C} \) (specific heat capacity of aluminium),
- \( \Delta T = 31°C - 26°C = 5°C \).
Rearranging the formula to find the mass:
\[
m = \frac{Q}{c \Delta T} = \frac{1800}{0.90 \times 5} = \frac{1800}{4.5} = 400 \, \text{g}
\]
Thus, the mass of the sample is 400 g.