K, you seem to be overthinking this. It's actually fairly simple, I promise!
So, if the cheaper item is free, then you are paying for the $48 item and NOT for the $30 item, so your total cost is $48.
Since you bought two items for a total of $48, then your cost per item is $48/2 = $24 per item.
Hope this helps!