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 15 heads and 43 legs . how many cats does the ship host ?
"sa ' s + co + ca + cats = 15 . sa ' s + 1 + 1 + cats = 15 or sa ' s + cats = 13 . sa ' s ( 2 ) + 2 + 1 + cats * 4 = 43 sa ' s * 2 + cats * 4 = 40 or sa ' s + cats * 2 = 20 or 13 - cats + cat * 2 = 20 then cats = 7 d"
multiply(divide(subtract(subtract(43, const_1), multiply(subtract(15, const_1), const_2)), subtract(multiply(subtract(15, const_1), const_4), multiply(subtract(15, const_1), const_2))), subtract(15, const_1))