A desktop and four legs.
The leg of the table is four times as big as the desktop.
So 300(5-x)=4*50x.
1500-300x=200x
x=3
5 x = 2
So the table top is 3 cubic meters and the legs are 2 cubic meters.
The number of tables is 50x= 150.