Accelerometer Nunchuck: from three values to one

To do this it's necessary to find a formula to go from the three values to one

How about d = a + b + c?