Subtract:
5x from 9x.
Arrange the variables in proper columns and subtract them,
9x-5x4x
Hence, 9x-4x=5x.