The consumer is in equilibrium when the Marginal Rate of Substitution (MRS) between two goods \( X \) and \( Y \) is equal to the ratio of their prices, i.e., \( \frac{P_X}{P_Y} \). This ensures that the consumer is maximizing utility given their budget constraint.