A price index of two items of A and B is being estimated

A price index of two items of A and B is being estimated. If two items are assigned weights of 64 and 32 respectively, then the price index becomes 279. Similarly, if they are assigned weights of 50 each, then the price index turns out to be 265. Determine the individual price index number of items A and B.

There are two situations in the given conditions. Let the index for the first item and the index for the second item.