A nice olympiad math algebra how to solve for x in this problem