87. Let A=ace+bdf,B=abc+bcd+cde+def+efa+fab, then by the AM-GM inequality we have
A+B=(a+d)(b+e)(c+f)⩽[3(a+d)+(b+e)+(c+f)]3=271B⩽271−A⩽271−1081=361
Equality holds if and only if a+d=b+e=c+f=31, and ace+bdf=1081.
That is, when ace+(31−a)(31−c)(31−e)=1081 and 0<a,c,e<31. At this time, ac+ce+ea+121=31(a+c+e)
For example, when a=41,b=51,c=92,d=121,e=152,f=91, equality holds.