Mesh Current Analysis :
Mesh Equation A:
-40+ia(2)+(ia-in)(8)=0
-40+2ia+8ia-8ib=0
10ia-8ib=40
Mesh Equation B:
(ib-ia)(8)+ib(6)+(ib-ic)(6)=0
8ib-8ia+6ib+6ib-6ic=0
-8ia+20ib-6ic=0
MeshEquation C:
ic-ib(6)+ic(4)+20=0
6ic-6ib+4ic+20=0
6ib+10ic=-20
Solve via Matrix Equation
(Current A is flowing thru the 2ohm resistor)
(Current B is flowing they the 6ohm resistor)
(Current C is flowing thru the 4ohm resistor)
ia-ib is flowing thru the 8ohm resistor
ib-ic is flowing thru the 6ohm resistor
ia=5.6A
ib=2A
ic=0.8A