Using Power from two Arduinos

then dont use that 5V pin, make another 5Vpin using a voltage regulator ic circuit. then you just use the mega to be the brain and not be the supplier....