Official Explanation
Because of all of the variables in the answer choices, this problem provides an excellent opportunity to pick numbers. Considering the parameters, you know that Stock A in 2010 must be 4/5 the value of Stock B, and you will need to take percent changes for each. So choose numbers that will provide easy calculations, such as: Stock A = 80 and Stock B = 100, and the % increase for A is 25 and for B is 20. This also means that N is 180.
With this, you can see that the value of stock B, 100, can be obtained by using N/1.8, so that is the correct answer in the left-hand column.
For the right-hand column, recognize that the percent changes must be involved, so you only need to test the last three choices. And you will find that the new ratio should be 100, Stock A plus 25%, to 120, Stock B plus 20%. This is 5/6, which checks out with the fifth answer choice, 0.8 ((1+A)/(1+B).
Answer: Value of Stock B in 2010: N/1.8
Ratio in 2012: 0.8((1+A)/(1+B))