Let x = the original price of the electric wok.
r(x) = x - $5 (the price after the rebate)
p(x) = x * (1 - 0.25) (the price after the discount)
Given that x = $38, we can substitute that value in to find the final cost of the wok in each composition:
r(p(x)) = r(p(38)) = r(38 * (1 - 0.25)) = r(28.5) = 28.5 - $5 = $23.50
p(r(x)) = p(r(38)) = p(38 - $5) = p(33) = 33 * (1 - 0.25) = $24.75
So, r(p(x)) = $23.50 and p(r(x)) = $24.75
r(p(x)) will save her the most money.