A salesperson earns a base salary of $1,800 per month and 4.2% commission on her total sales for that month. Write a function that gives her monthly salary based on her total sales. Use the function to determine the amount of sales for a month in which her salary was $4,824.

salary = 1800 + (sales * .042)

4824 = 1800 + .042 s

3024 = .042 s

To write the function, we need to calculate the monthly salary based on the total sales. The salesperson's salary consists of a base salary and a commission based on the total sales.

Let's denote the total sales as "s". The function can be written as follows:

```python
def calculate_salary(s):
base_salary = 1800
commission_rate = 0.042
commission = s * commission_rate
monthly_salary = base_salary + commission
return monthly_salary
```

Now, to determine the amount of sales for a month in which her salary was $4,824, we can solve the equation by rearranging the formula:

```python
salary = 4824
sales = (salary - base_salary) / commission_rate
```

Plugging in the values:

```python
base_salary = 1800
commission_rate = 0.042
salary = 4824

sales = (4824 - 1800) / 0.042
```

So, the amount of sales for a month in which her salary was $4,824 is $85,714.29 (rounded to two decimal places).

Please note that the sales amount is an estimation based on the given information and may not be the exact value.