We are given (a+b)+(b+c) = 4.
from which we get since (x+y)2 ≥ 4xy, 4≥(a+b) (b+c)
Now (a+b)(b+c) = b2+ab+bc+ca
Hence we get ab+bc+ca ≤ 4-b2
Notice that the maximum of (a+b)(b+c) is attained when a=c no matter what the value of b is.
So we can have b = 0.
which means the maximum value of ab+bc+ca is 4