A cylinder and piston assembly (defined as the system) is warmed by an external flame. The contents of the cylinder expand, doing work on the surroundings by pushing the piston outward against the external pressure. If the system absorbs 586 J of heat and does 363 J of work during the expansion, what is the value of ΔE?