After breaking of the cell and killing the guard, go to the table and examine the pile of garbage in the corner. Pick up the bone on the left side of the pile and proceed to use it on chair ten times in row (quickly).
When you sell the gems in town, double click on them, and then give them to the dealer. Then buy his gems and sell them back to him as above. You will receive a higher price on the gems.