You have the real power (W) for each item.

You have the power factor for each item.

Calculate the apparent power (VA) for each item. This is Watts divided by Power factor.

Add the Watts (W) for each item to get the total real power (W).

Add the apparent power for each item to get the total for apparent power (VA).

The overall power factor is total real power (W) divided by total apparent power (VA).

To get power factor angle take acos of the power factor.

Reactive power (VAR) is sin (power factor angle) x apparent power (VA).

Determine the total reactive power( VAR).

Determine the apparent power (VA) at 0.98 power factor by dividing the total real power (W) by 0.98

Determine power factor angle at power factor 0.98 = acos 0.98 = 11.4degrees

Determine total reactive power (VAR) at 0.98 power factor = total apparent power (VA) x sin 11.4 degrees.

Amount of compensation required = total VAR uncompensated – total VAR at 0.98 power factor.

Good luck. Don’t forget to consider what happens of load is only partial rather than full.