Let J be the number of marbles owned by John, and S the number of marbles owned by Steve.
John has three more marbles than Steve, so
They have 25 marbles, so
So, we have the following system:
Add the two equations side by side:
Since John has three more marbles, we have