Function: 2 *(numbers('xyy') if numbers('yxr') if mean(numbers('xyy'), numbers('yxr')) > numbers("yyy") else numbers('xyy') > numbers('xyy') if numbers('yxr') if numbers("yyy") > numbers('xyy') else mean(numbers('xyy'), numbers('yxr')) > mean(numbers('xyy'), numbers('yxr')) else numbers('yxr') else mean(numbers('xyy'), numbers('yxr')))