Well for starters, you mentioned that your friend bought Premium Economy, while you bought economy, you get more miles on PE vs. E. Secondly, he is EXP, and you are PP, he is getting a bit more. Since you are buying economy, you need to check how it codes regarding mileage accrual if bought at Cathay or AA, as sometimes you earn more buying on partner and flying as a codeshare.