The ratio of the number of marbles received by John and Peter was 4:7 respectively.

The ratio of the number of marbles received by Peter and Sam was 9:5. John gave
1/12 of his marbles to Sam. Peter gave 1/9 of his marbles to Sam. Eventually, Sam
had 135 marbles.

(a) Find the ratio of the number of John's marbles to Sam's marbles at first.

(b) Find the total number of marbles received by the 3 boys.

J:P = 4:7 = 36:63

P:S = 9:5 = 63:35
J:P:S = 36:63:35

1/12 * 36x + 1/9 * 63x + 35x = 135
45x = 135
x = 3
Can you finish it off from here?