Lease trade in

Can I trade in my leased vehicle for another vehicle and use it as a down payment if there is equity in it? If so do I have to pay taxes on the equity or can it all be applied toward the new vehicle?