<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_brightness_level(cls, percent):
 """ Convert percents to bulbs internal range. percent should be integer from 0 to 100. Return value is 2 (minimum brightness) - 27 (maximum brightness) """

        # Clamp to appropriate range.
        percent = min(100, max(0, percent))

        # Map 0-100 to 2-27
        value = int(2 + ((float(percent) / 100) * 25))
        return percent, value