Function: sum(min(numbers("xxx") if max(gradient[1](numbers("xxx")), numbers("xxx")) > gradient[1](numbers("xxx")) else numbers('xyy'), max(gradient[1](numbers("xxx")), numbers("xxx"))), numbers("xxx") if max(gradient[1](numbers("xxx")), numbers("xxx")) > numbers('xyy') else gradient[1](numbers("xxx")))