2018 UNCO Math Contest II Problems/Problem 5