In chemistry, anything going out of the system is negative and anything coming into the system is positive. An example being is if your system is a gas in a piston, work is being done on the system when it is being compressed, so the work done on the system is positive, and the work done by the system is negative
hope this helps <3