the ratio of the number of cats to dogs in a petshop is 6:5.the ratio of the number of hamsters to dogs is7:4.if there are158 pets altogther,how many hamsters?