Forum Academy Marketplace Showcase Pricing Features

Sort in DB and find a range

I have a db like attached.

The user will enter an X value and I want to find between which 2 record. [amount table]

so if X amount is 30.000 It needs to find it is the value between raw 3 and raw 4 so it needs to get those 2 raws values to operate.

any idea?