A system absorbs 400 J of heat and does work equivalent to 150 J on the surroundings. Calculate the change in the internal energy of the system.