Function: sum(numbers('rep') if 2 *(10 *(numbers('rep'))) > 10 *(numbers('rep')) else numbers("per"), 2 *(10 *(numbers('rep')))) if numbers("per") if 10 *(numbers('rep')) > numbers('rep') else 2 *(10 *(numbers('rep'))) > 2 *(10 *(numbers('rep'))) else 10 *(numbers('rep'))