If QR is 17 more than twice x, RS is 19 less than six times x, and QS is one less than four times x, find x and the measure of each side