Select prices the last 5 rows of the table : i would like to know how could i get the last 5 rows and only show the prices that has the same value.

Here is an example of my Table

IDPRICES | PRICES <br/>
39       | 500 <br/>
38       | 300 <br/>
37       | 100 <br/>
36       | 200 <br/>
35       | 500

now i only want to show the values rows 35 and 39

Here is an example of my Query

select idprices, prices from test.prices

order by idprices desc

limit 5
;

