Basic knowledge you need to know about prediction markets:
1. $yes + $no should equal 1, but is usually greater than 1; if it is less than 1, there is an arbitrage opportunity.
2. The shares you buy of $yes == the shares of $no (note that it is shares, not amounts); if their prices combined are less than 1, then you have locked in a profit of share * (1 - $yes_price - $no_price).