If the real numbers a,b,c are such that a2+4b2+16c2=48 and ab+4bc+2ca=24, then what is the value of a2+b2+c2?