i have a formula for a videogame im trying to make, but ive forgotten more math than i ever knew. The formula is to show how many experience points are rerquired to advance to a given level. however, i would like to find out what level a character is based soley on their total XP. Please can you explain how this formula would be transposed to make L the subject

x = l * (l-1) * 500