Find the non-zero value of $a$ such that the quadratic equation $ax^2+8x+4=6x-40$ has only one solution.