This is from the Regional Math Olympiad. The trick here is that not all polynomials are solved in terms of x. Sometimes the other unknown variable becomes the key.