I have 2 arrays.
$fruits = [
'mango' => 20,
'apple' => 30,
'orange' => 10,
'banana' => 5,
];
$purchased = ['mango','banana'];
How do I get the sum of the values on the $fruits array that are only available on the $purchased array? That is get the sum = 25