Therefore, it is crucial to account for the weight of each component when calculating the…