Now remember, since kinetic energy and potential energy are forms of mechanical energy, you can convert between them. So that would mean that kinetic energy equals potential energy.
Which would mean that 12mv2 equals mgh. So just remember, if you're given kinetic energy, there are ways to convert it into potential energy, and if you're given potential energy, you can convert it to kinetic energy.