If 3.50 kJ of heat is needed to raise the temperature of a sample of metal from 10.°C to 30.°C, how many kilojoules of heat will be required to raise the temperature of the same sample of metal from 31°C to 54°C?

it is linear, so 3.50J/20C= X/23C

solve for x