A 31-foot board is cut into two pieces so that three times the length of the longer piece is 4 times the length of the shorter piece. What is the length of the longer piece?