A restaurant has 40 tables with 4 legs and 50 tables with 3 legs. Calculate the total number of legs the restaurant's tables have.
The total number of legs which the tables with four legs have is 40*4 = 
<gadget id="calculator">40*4</gadget>
<output>160</output>
160 legs.
The three-legged tables have a total of 50*3 = 
<gadget id="calculator">50*3</gadget>
<output>150</output>
150 legs.
The total number of legs that the restaurant's table have is 150+160 = 
<gadget id="calculator">150+160</gadget>
<output>310</output>
310.

<result>310</result>