So if you have this type of questions what you do is add the 10+2 and then divide by 2 to get A
So A is 6 in this case.
Then you can substitute the values and say 6+ b=10 what is b?
So b is obviously 4.
Now you can check your answers with equation number 2