 A general rule for solving such equations is that any solution to it is also a solution to the equation obtained by applying some operation to both sides. In this case we can simplify the equation by subtracting \(x\) from both sides to give \(2x = 4\), and then dividing both sides by 2 to give \(x = 2\). So Xavier is now two years old.