Amazon interview question

Process two log files get the average transaction for each ip