Your friend should have gone to the pharmacy/drugstore to get the medicine. The pharmacist will usually explain what it is as they take the prescription paper for their records.

Anyways, here is what I THINK it means:

2X2X5 - take 2x (2tabs/capsule/pills) 2x (twice a day) for 5x (5 days)

1X2X5 - take 1x (t1abs/capsule/pills) 2x (twice a day) for 5x (5 days)