a party of people go for an excursion in x cars, of which y cars each hold 4 people and the remainder 5. How many people were their in the party

4y+5x

So much for math -- now it's time to ask for help with English.

Oops. My bad.

4y + 5(x-y) = 5x-y

You can think of the party as having x cars of 5 people each, then subtract one person for each of the y cars, which only hold 4.

To find out the number of people in the party, we need to know both the number of cars and the seating capacity of those cars. Let's break down the information given:

Let's assume:
x = the total number of cars
y = the number of cars that can hold 4 people
( x - y ) = the number of cars that can hold 5 people

Since each car that can hold 4 people actually holds 4 people, and each car that can hold 5 people actually holds 5 people, we can calculate the total number of people in the party.

Number of people in cars holding 4 people: y * 4 = 4y
Number of people in cars holding 5 people: ( x - y ) * 5 = 5( x - y )

Total number of people in the party: 4y + 5( x - y )

Please provide the values for x and y so we can calculate the answer.