We start with 2 types of numbers:
one with variable X
one with no variable or a constant
We start by adding the numbers with variables
(1/7x + 3/8) + (2/7x -1/8)
1/7x+2/7x = 3/7x
you can repeat the same process with the constants
3/8-1/8 = 2/8 = 1/4
so the simplified version = 3/7x+1/4