Which number should replace the question mark in the picture below ?

Which Number Riddle

26

14 = 1^2 + 2^2 + 3^2
21 = 4^2 + 1^2 + 2^2
29 = 4^2 + 3^2 + 2^2
26 = 3^2 + 4^2 + 1^2