In both problems, you just have to set the equations properly, then solving them becomes easy.
1. let x be the first number, and let y be the second number
their sum is A: x + y = A
their difference is B: x - y = B
Now you can solve these two equations simultaneously. In case you haven't studied simultaneous equations yet, one way to do it is to add the two equations together so that terms cancel out. E.g. (x+y) + (x-y) = A + B
==> 2x = A + B, and then solve for x and substitute for y.
2. let j be Joan's present age, and n be Nina's present age.
Joan's age seven years ago = j-7
Nina's age seven years ago = n-7
so, 5 * (n-7) = j-7
==> 5n-35 = j-7
==> 5n - j = 28 (call this equation one)
Joan's age in one year = j+1
Nina's age in one year = n+1
j+1 = 2*(n+1)
==> j+1 = 2n +2
==> j - 2n = 1 (call this equation two)
Now, you just have to solve equations one and two simultaneously. Again, I've set up the equations so all you have to do is add them together - the j's will cancel out, and you can solve for n first.
I hope this helps!