<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def round_figures(x, n):
 """Returns x rounded to n significant figures."""

    return round(x, int(n - math.ceil(math.log10(abs(x)))))