The difference between the length and width of a triangle is 7 units. The perimeter is 50 units. What are the dimensions?