If only Jim purchased a cup of coffee, we will subtract its cost from the total;
9.50 - 1.00 = 8.50
Assuming that the two purchased nothing else for breakfast, and that the cost of an egg scramble was the same for both, let's call the price of the egg scramble x.