52 - (x/8) = (x/5)

multiply each term by 40, the LCD

2080 - 5x = 8x
2080 = 13x
x = 2080/13
x = 160

check:
if x = 160
LS = 52 - 160/8 = 32
RS = 160/5 = 32

x = 160 is correct!