7.5 kJ
The total work done during the compression process is the sum of the work done in each process segment: one segment with linearly varying pressure and one with constant pressure. We find the total work by calculating the work for both segments and summing them.