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 ?
"sa ' s + co + ca + cats = 14 . sa ' s + 1 + 1 + cats = 14 or sa ' s + cats = 12 . sa ' s ( 2 ) + 2 + 1 + cats * 4 = 41 sa ' s * 2 + cats * 4 = 38 or sa ' s + cats * 2 = 19 or 12 - cats + cat * 2 = 19 then cats = 7 c"
multiply(divide(subtract(subtract(41, const_1), multiply(subtract(14, const_1), const_2)), subtract(multiply(subtract(14, const_1), const_4), multiply(subtract(14, const_1), const_2))), subtract(14, const_1))