If they are at the same price they are filled FIFO. So A would get his full 10 and 5 would get at $2.40. Since A's order has been cleared out B now moves to the front of the at the $2.40 price point. The balance of B's order would be filled at $2.40 as soon someone offers at $2.40 or better if...