Problem involving heat capacities