If a rectangle's length is 10 more than 3 times the width and the perimeter is 36. what are the dimensions?