38,000 + (18,000 x 1.5 = 27,000) = 65,000
The equation is not as simple as it appears, however, because the scarab of protection itself already provides multiple different abilities--so you'd have to break down the cost of the scarab before applying the formula. The final cost should be...