Task: Program Execution
Input (English): [3, 10, 7, 5, 4] , [3, 5, 1, 2, 7]
Output (English): [3, 5, 7]