Two friends go to the store because mangoes and apples are on sale. One friend buys 4 mangoes and 7 apples, spending $14.89. The other buys 8 mangoes and 3 apples for a total of $18.89. How much does each mango and each apple cost?