If the total ticket price is cheaper, the average will be cheaper assuming you use the standard mathematics of "average_price = total_price / number_of_people".
Anyway it doesn't need to be fully complex, but it would be nice to try to pick a place that's fairly cheap (both flights, and rooms).
