As the number of children are in arithmetic progression starting with 2, the five families have 2, 3, 4, 5, 6 kids respectively. As each children has kept the pets equal to the number of kids in the family, each family has n2 pets. So total = 22+32+42+52+62 = 90.