x - the amount of money Nina has
y - the cost of one widget
Nina has exactly enough money to purchase 6 widgets.

If the cost of each widget was reduced by $1.25 (so the cost of one widget would be y-1.25), Nina would have exactly enough money to purchase 8 widgets.

Substitute 6y for x in the second equation:

Nina has $30.