Ok I am totally confused with this word problem I dont understand how to make it an equation I dont know if i have set it up correctly. Help!!

2. Suppose Bob owns 2,000 shares of Company X and 10,000 shares of Company Y. The total value of Bob's holdings of these two companies is $340,000.

X(2,000) + Y(10,000)=340,000

Suppose Frank owns 8,000 shares of Company X and 6,000 shares of Company Y. The total value of Franks holdings of these two companies is $340,000.

X(8,000)+Y(6,000)=340,000

a. Write equations for Bob and Frank's holdings. Use the variables X and Y to represent the values of shares of Company X and Company Y.

b. Solve for the value of a share of Company X and Company Y.