A MATHCOUNTS competition question

mathcounts2014original