Energy consumed by an electric device can be obtained with the help of the expression for power,
P=WT
where,power rating of the device, P = 500W= 0.50 kW
time for which the device runs, T= 10 h
Work done = Energy consumed by the device
Therefore, energy consumed = Power × Time =0.50×10=5 kWh
Hence, the energy consumed by four equal rating devices in 10 h will be 4×5 kWh=20 kWh.