The number of 1/3 of Kristen's marbles was 25 more than that of 20% of John's marbles. They had a total of 315 marbles. Kristen gave John some marbles and the ratio of the number of marbles Kristen had left to the ratio of the number of marbles John had left became 29:34. What was the number of marbles Kristen gave to John?

k+j = 315

1/3 k = 1/5 j + 25
(k-x)/(j+x) = 29/34
Kristen gave John x=20 marbles