you fill up 40 gallon pool putting in 2 gallons water every minute, if someone scoops out 1 gallon every 8 minutes, how long would it take to fill the pool?

That sounds like a pretty small pool.

2x - 1/8x = 40

Solve for x.

To find out how long it would take to fill the pool, we need to calculate the net rate at which water is being added to the pool.

First, let's find the rate at which water is being added:
2 gallons of water are added to the pool every minute.

Next, let's find the rate at which water is being removed:
1 gallon of water is removed from the pool every 8 minutes.

Now, let's calculate the net rate at which water is being added:
Net rate = Rate of addition - Rate of removal
Net rate = 2 gallons per minute - (1 gallon per 8 minutes)
Net rate = 2 gallons per minute - (1/8) gallons per minute
Net rate = (16/8) - (1/8) gallons per minute
Net rate = 15/8 gallons per minute

Since we want to fill the entire 40-gallon pool, we can divide the pool capacity by the net rate of water being added:
Time = Pool capacity / Net rate of addition
Time = 40 gallons / (15/8 gallons per minute)
Time = 40 gallons / (15/8)
Time = 40 * (8/15) minutes
Time = 32/3 minutes

Therefore, it would take approximately 10 and 2/3 minutes to fill the pool.