We have a final price of $631 that includes the sales tax.
We can then decompose this final price (FP) in two terms: original price (OP) and the sales tax (ST).

As the sales tax is 7.7% of the original price, we can write:

As we know the final price we can calculate the original price as:

Answer: the original price was $585.89.