Let x = number of pounds of coffee purchased.
Leila spend on coffee x•8.12 and have left 49.40.
The equation is
90 - x•8.12 =49.40
We solve for x the above equation.
x•8.12 = 90 -49.40
x•8.12 = 40.60.
x = 40.60/8/12
x = 5.
Laila bought 5 pounds of coffee.