Android->apm2.6->pc

Good day guys! Is it possible to modify the arduino codes to have an output as the image above? I want to take an average of the data of both devices. Your help is much appreciated. Thanks