I've spent a couple hours on this problem but can't seem to crack it.

The goal is to find a Thevenin equivalent circuit to the left of terminals a,b.

Here are the equations that I've come up with, but have no solution when solving w/matlab.

KVL going CW around mesh on the left:

**10 - 2i1 - v = 0**

KCL at node c:

**i1 - v/2 - i2 - 0.4v = 0**

Nodal Analysis at node c, using node b as the reference node (not sure about this equation):

**-(Vc - Vd)/2 - Vc/2 - (Vc - Va)/2 - 0.4v = 0**

Va = v - 2*i2

Vd = 10

After simplifying each equation and putting them into a matrix, it does not yield a solution. Could someone please help verify the 3 equations?