The figure for the calculation us shown below.

By substituting the values in equation (1) calculate the power factor before adding the capacitor.
Calculate the reactive power consumed by the inductor by substitute the values in equation (2),
By substituting the values in equation (1) calculate the power factor after adding the capacitor.
Calculate the reactive power consumed by the load
The difference in the reactive power can be calculated as
Substitute the values and solve as
role="math" localid="1655110960636"
Substitute the values in equation (3) and calculate the capacitance value
Therefore, the capacitance of the capacitor bank is