Answer:
Step-by-step explanation:
Let the amount of gas in the tank before filling was x.
We have:
let the amount of gas be x
[tex]\\ \sf\longmapsto x+2\dfrac{4}{7}=4[/tex]
[tex]\\ \sf\longmapsto x+\dfrac{18}{7}=4[/tex]
[tex]\\ \sf\longmapsto x=4-\dfrac{18}{7}[/tex]
[tex]\\ \sf\longmapsto x=\dfrac{28-18}{7}[/tex]
[tex]\\ \sf\longmapsto x=\dfrac{10}{7}[/tex]
[tex]\\ \sf\longmapsto x=1\dfrac{3}{7}[/tex]