2014 UNM-PNM Math Contest II Problems/Problem 2