please help im unsure of how to do this question, nor do I know how to do the equation for it!

we know that
Let
x -----> number of sandwiches
y ----> the total cost
so
From Jimmy Jhon
y=5x+10
From Subway
y=6x
If x=3 sandwich
we have
Jimmy Jhon ------> y=5(3)+10=$25
Subway --------> y=6(3)=$18
You should buy at Subway
Part B
if x=20 sandwiches
Jimmy Jhon ------> y=5(20)+10=$110
Subway --------> y=6(20)=$120
You should buy at Jimmy Jhon