Specific heat separates the material property from the mass and the temperature change. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Use mass and specific heat
The sample has mass 2 kilograms. Its specific heat is 5 joules per kilogram per kelvin.
m=2kgc=5J/(kg K)
Specific heat scales by mass
Specific heat is per kilogram, so multiply by the mass and by the temperature change.
Q=mcΔT
Compute the heat
Multiply 2 kilograms by 5 joules per kilogram per kelvin by 3 kelvin. The result is 30 joules.
Q=2kg⋅5J/(kg K)⋅3K=30J
Mass is one direct factor
Hold the material and temperature change fixed. The diagram shows the middle row; more kilograms require more heat.