Like denominators. Both fractions count the same size of piece, so subtract the numerators to see how many pieces are left. The denominator describes the pieces, so it does not change. The larger fraction comes first.
five eighths − two eighths = three eighths
5 eighths take away 2 eighths leaves 3 eighths.