Each person pays a total of $2+x. There are 4 people in total, therefore, an expression that represents the total that the group pays is:

Simplifying the above expression we get:

If we substitute x=3 in the above expression we get:

Answer:
Part a)

Part b)

dollars.