Solve for x (Intermediate)