For the humans in the house, there are 5 * 2 = <<5*2=10>>10 legs
Javier has a total of 2 + 1 = <<2+1=3>>3 four-legged pets
For the pets in the house, there are 3 * 4 = <<3*4=12>>12 legs
There are a total of 10 + 12 = <<10+12=22>>22 legs
#### 22