OK, Debra, you are not solving for x, but x can be how many days you are taking the Rx.
For example, your equation looks like...
f(x) = 3x
You are taking three capsules a day, so 3 times the number of days.
Now, f(10) = 3(10) = 30 capsules needed.
Hope this helps!