The 6V and 8V sources add to 10V with the help of trigonometry.

complex vector with trigonometry