On the morning of the sale, the store donated 50 pairs of shoes to a homeless shelter. Then they sold 64% of their remaining inventory during the sale. If the store had 288 pairs after the donation and the sale, how many pairs of shoes did they have at the start? how many shoes did they have at the start?