Kidneys and lungs exhibit the same function, they excrete waste out from the body. However, they do not have the same waste excreted. For kidneys, it excretes urine with salt that became a residue after extracting the nutrients from the food and liquid we consume. For lungs, it excretes carbon dioxide from the oxygen that it intakes.