If an element N has isotopic abundances X% of mass number 12, atomic number 6, and Y% of N of mass number 13, atomic number 6. If their relative isotopic mass is 12.35. Find X and Y.

12*(x) + 13(1-x) = 12.35

Solve for x