There are total 5 gallons of paint.
2 pints of paint is needed to paint a table.
We are asked to find out how many tables can be painted?
Since gallons and pints are two different units so we need to do the conversion from one unit to another.
Let us convert 5 gallons into pints
1 gallon is equal to 8 pints
5 gallons are equal to 5×8 = 40 pints
So now we can find out the number of tables that can be painted with this much paint
number of tables = total paint/paint per table
number of tables = 40 pints/2 pints
number of tables = 20
Therefore, 20 tables can be painted with 5 gallons (40 pints) of paint.