Suppose the prices of the commodities A and B are p1 and p2 respectively. The consumer purchases X1 unit of A and X2 units of B. Suppose, the consumer has an income denoted by M and THE CONSUMER WOULD SPEND THE ENTIRE AMOUNT OF M ON THESE TWO COMMODITIES. How are p1, p2, X1, X2 and M related?

Suppose the prices of the commodities A and B are p1 and p2
respectively. The consumer purchases X1 unit of A and X2 units of B.
Suppose, the consumer has an income denoted by M and THE CONSUMER
WOULD SPEND THE ENTIRE AMOUNT OF M ON THESE TWO COMMODITIES. How are
p1, p2, X1, X2 and M related?