Function: invert(numbers("xxy") if numbers('rep') if numbers("xxy") > numbers('rep') else numbers("xyx") > numbers("xxy") if numbers('rep') if numbers("xxy") > numbers("xyx") else numbers('rep') > numbers("xyx") else max(numbers('rep') if numbers('rep') > numbers("xyx") else numbers("xxy"), numbers("xxy")) else max(numbers('rep') if numbers('rep') > numbers("xyx") else numbers("xxy"), numbers("xxy")))