Have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.
The way you are sending and receiving the data in the programs in your Original Post you have no means to know which item of data is which. Look at how it is done in the 3rd example in my tutorial. You can send data in a compatible format like this
Serial.print('<'); // start marker
Serial.print(value1);
Serial.print(','); // comma separator
Serial.print(value2);
Serial.println('>'); // end marker
...R