A grocer mixes together some cashews costing 8$ per kilogram with some nuts costing 10$ per kilogram. The grocer sold 12 kg of the mixture for 8.50$ per kilogram. How many kilograms of cashews were in the mixture?

I have to find 2 equations then find the answer most likely using substitution.