How many years will my friend's stealing gold?

This year, my friend and the other two stole the gold value of about 20,000 yuan in a supermarket. My friend had no case before the case. How many years can I judge? Can you bail?