I'm trying to make it so that the xp that you need to lvl doubles every time you lvl.

local baseLvl = 0
local baseXpNeeded = 10

I want to get the lvl then calculate the amount of xp needed (basically I need an equation).