In simple
Just imagine you bought Stock A for 60/- and B for 40/-
Total investment is 100/-
Now A increased 9% ie 60 becomes 65.4/-
and B increased 6% ie 40 becomes 42.4/-
Total portfolio value after appreciation is 107.8/-
so total 7.8% profit,Rounded to 8%
~RK