Answer:
a = 80 shares of stock A
b =120 shares of stock B
Explanation:
Solved by creating a system of equations
Let a be number of shares of stock A
B number of shares of stock B
a + b = 200
9.5a + 27b = 4000
Solving the two equation
a = 80 shares of stock A
b =120 shares of stock B