A company incurred N21 000 in running its four departments, namely J,K,L and M with…