To answer this question, we will set a system of equations, and we will solve the system by the graphical method.
Let x be the number of times Jake buys drinks and food, then the total amount he will pay is determined by the following equation:

Its graph is:
Now, let x be the number of times Joshua buys drinks and food, then the total amount he will pay is determined by the following equation:

Graphing both equations we get:
The intersection of the graphs is the point,