Answer:
Step-by-step explanation:
FIrst let c be the specific heat, now we need the heat that the device is able to provide:
so it is turned on for 5 minutes (300 seconds) with 25 Watts

Now heat is equal to the change in internal energy, where we will use the remaining terms.
Now we continue

where
is the change of temperature (
)
now

We solve

now we just plot it for different values of M using any software..
please find attached the plot of the temperature.
The result indicates that as the mass increases it is harder for the system to reach higher final temperatures.