jake and sally had an equal amount of money at first.after jake bought a bag which cost $18, sally had thrice as much as jake. how much money had jake at first?

j = s

3(j - 18) = s

substituting ... 3j - 54 = j