To solve this problem, we need to determine the value of x, which represents the number of flights of stairs Janice walks up.
Let's break down the information given:
Number of flights of stairs Janice walks up: x
Number of flights of stairs Janice walks down: 3
Total number of flights of stairs Janice walks (up and down): 24
Number of times Janice walks up the stairs: 5
Number of times Janice walks down the stairs: 3
We can set up the equation as follows:
(Number of flights of stairs Janice walks up * Number of times Janice walks up the stairs) + (Number of flights of stairs Janice walks down * Number of times Janice walks down the stairs) = Total number of flights of stairs Janice walks (up and down)
(x * 5) + (3 * 3) = 24
Let's simplify and solve for x:
5x + 9 = 24
To isolate x, we subtract 9 from both sides of the equation:
5x + 9 - 9 = 24 - 9
5x = 15
To solve for x, we divide both sides of the equation by 5:
x = 15 / 5
x = 3
The value of x is 3.
#### 3
The answer is: 3
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Janice's office is on the third floor, and she has to walk up 3 flights of stairs to get to her office.  In a single day, she goes up the x flights of stairs 5 times, down the the three flights of stairs 3 times, and uses the elevator the remainder of the time. Janice walks (up and down) 24 flights of stairs in a single day.

### Answer:
