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
These 7 pieces have 4 legs each so they have 7*4 = <<7*4=28>>28 legs
There are 3 tables with 3 legs each so they have 3*3 = <<3*3=9>>9 legs
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