"Each file cost twice as much as each pen."
pen → 1u file → 2 x 1u = 2u
"The total cost of a pen and a file is $4.20. "
pen + file → $4.20 pen + file (units) → 1u + 2u = 3u
3u → $4.20 1u → $4.20 ÷ 3 = $1.40
"Xin Hui bought 15 similar pens and 8 similar files."
total (units) → 15 x 1u + 8 x 2u = 31u
total ($) → 31 x $1.40 = $43.40