Diophantus of Alexandria around 250 AD โ though his notation looks nothing like modern algebra
Diophantus used a symbol resembling an 's' for unknowns. The tradition of using 'x' started with Descartes in 1637. One theory: his printer suggested 'x' because it was rarely used in French. It stuck.