Consumer is said to be in equilibrium, maximizing his total utility, when
According to the law of equi-marginal utility, a consumer is said to be in equilibrium when the ratio of the marginal utilities of the two commodities and their respective prices are equal. This means that the MU of the last rupee spent on each commodity is the same.
The equation it should satisfy is: MUX /PX = MUY/PY