My original sentence is
I sold the ring that I bought for 25$ from one of my friends a few years ago for 5$.
I mean that
I sold, for 5$, the ring that I bought for 25$ from one of my friends a few years ago.
While I want to keep "for 5$" at the end, can I write the first sentence or should I use a comma like
I sold the ring that I bought for 25$ from one of my friends a few years ago , for 5$