Five out of seven + two out of five - x = half how to do

Five out of seven + two out of five - x = half how to do

5/7+2/5-x=1/2
39/35-x=1/2
x=78/70-1/2
x=39/70
/The first is the numerator and the last is the denominator