<human>:  There is a very large room that has 4 tables, 1 sofa and 2 chairs that have 4 legs each. There are also 3 tables with 3 legs each, 1 table with 1 leg, and 1 rocking chair with 2 legs. How many legs are there in the room?
<bot>: How many pieces of furniture are there? ** There are 4 tables, 1 sofa and 2 chairs that have 4 legs each so 4+1+2 =<<4+1+2=7>>7 pieces of furniture
How many legs do the 7 pieces of furniture have? ** These 7 pieces have 4 legs each so they have 7*4 = <<7*4=28>>28 legs
How many legs do the 3 tables have? ** There are 3 tables with 3 legs each so they have 3*3 = <<3*3=9>>9 legs
How many legs are there in the room? ** We have 28 legs and 9 legs as well a 1 leg on a table and 2 on a rocking chair for a total of 28+9+1+2 = <<28+9+1+2=40>>40 legs
#### 40