Heat capacity says how many joules are needed for each kelvin of temperature change.
Read heat capacity
A heat capacity of 10 joules per kelvin means each kelvin of warming needs 10 joules.
C=10 J/K
Multiply by the temperature change
For a 3 kelvin change, use 3 copies of that energy.
Compute the heat
The transferred heat is 10 times 3, or 30 joules.
Q=10 J/K⋅3 K=30 J