Final answer:
To find the value of x and the number of steps to the bathroom, set up an equation and solve for x. The value of x is 10.5 and the number of steps to the bathroom is 47 steps.
Step-by-step explanation:
To find the value of x and the number of steps to the bathroom, we can set up an equation based on the information given:
Distance to the bathroom: 4x + 5
Distance back: 6x - 16
Since the distances there and back are the same, we can set the two equations equal to each other and solve for x:
4x + 5 = 6x - 16
Subtracting 4x and adding 16 to both sides, we get:
21 = 2x
Dividing both sides by 2, we find:
x = 10.5
So, the value of x is 10.5, and the number of steps to the bathroom can be found by substituting x back into the equation for the distance to the bathroom:
Distance = 4x + 5 = 4(10.5) + 5 = 42 + 5 = 47 steps