Answer:
Step-by-step explanation:
Both Sample A and B have the same mass (5g) and same temperature change (15°C). What is not said and may explain the difference in energy needed are their initial states and temperature.
For example Sample B may be liquid water at 90°C. Heating it up to 105°C will require additional energy to go from liquid to gas state. If Sample A is water vapor at 105°C at first, it has a lower specific heat and heating it up to 120°C does not involve a state change. So the eneregy needed is less.