a luxury liner , queen marry ii , is transporting several cats as well as the crew ( sailors , a cook , and one - legged captain ) to a nearby port . altogether , these passengers have 14 heads and 41 legs . how many cats does the ship host ?