Let's define
x: gas used on the third day
First, transform the mixed numbers into fractions, as follows:



The equation that relates these quantities is:
16/3 + 11/3 + x = 101/8
27/3 + x = 101/8
Solving for x:

87/24 can be also expressed as follows:

3 5/8 gallons of gas were used on the third day