you would need to create 2 equations first, the variables I am using are X=price for a sandwich and Y=Soft Drink
the first equation is going to be total price so you add x and y
X+Y=9.90
next, you need to create another equation to be able to get the price
3.5Y=X
next substitute X in the first equation with the second
(3.5Y)+Y=9.90
add
4.5Y=9.90
and now divide each side by 4.5
Y=$2.20
now substitute the Y in the first equation with it's value
X+(2.20)=9.90
now take away 2.20 from each side to get X
X=$7.70
so the answer is B