@final_result = grep /first condition/, grep /second condition/, @original_array;