I spent 35 euros and had 3/8 of my money left. How much money had I at first

spent 5/8 of it

35 = (5/8) x

x = 8 * 35/5 = 8 * 7