Let the total number of bricks manufactured by company B and C is 'b' and 'c' respectively.
Average number of unbaked bricks manufactured by company B and C together = 2600
35% of b + 40% of c = 2*2600 = 5200
7b + 8c = 104000 -----(1)
Total number of unsold bricks by company B = 2* total number of unsold bricks by company C
100/(100+30) * (100 - 35)% * b = 2*100/(100 + 80) * (100 - 40)% * c
b/2 = 2c/3
3b - 4c = 0 -------(2)
From eqn (1) and (2) -
13b = 104000 => b = 8000
c = 6000
Total number of unbaked bricks manufactured by company B and C together = 35% * 8000 + 40% * 6000 = 2800 + 2400 = 5200
Total number of sold bricks by company B and C together = (30/130)*(100 - 35)%*8000 + (80/180)*(100 - 40)%*6000
= 1200 + 1600
= 2800
Required percentage = [(5200 - 2800)/2800]*100 = (600/7)%
3d/7 = 600/7
d = 200